Skip to main content

Openbao EUVDEUVD-2026-24035

| CVE-2026-39946 MEDIUM
SQL Injection (CWE-89)
2026-04-21 GitHub_M GHSA-6vgr-cp5c-ffx3
4.6
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain OpenBao admin credentials
  2. Delivery
    Access PostgreSQL secrets engine configuration
  3. Exploit
    Inject malicious schema name in role policy
  4. Execution
    Trigger role revocation event
  5. Persist
    Execute arbitrary SQL as database user
  6. Impact
    Compromise PostgreSQL data integrity

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires: (1) Valid OpenBao administrative credentials or equivalent API access to configure the PostgreSQL secrets engine, specifically the ability to revoke roles or trigger role revocation workflows; (2) An active PostgreSQL database secrets engine configuration in OpenBao pointing to a PostgreSQL database; (3) The ability to control or influence the schema name parameter passed to the role revocation function, either through direct API manipulation or by configuring role policies with attacker-controlled schema names; (4) At least one database role under OpenBao management that can be revoked (triggering the vulnerable code path). The vulnerability does NOT require the attacker to have direct access to PostgreSQL or the ability to create actual PostgreSQL roles - OpenBao's administrative functions alone are sufficient. Default OpenBao installations with the PostgreSQL secrets engine enabled and at least one configured role are vulnerable. Non-default configuration is NOT a limiting factor; standard PostgreSQL secrets engine usage is sufficient for exploitation.

Impact

CVSS 4.6 with CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N indicates network-accessible SQL injection requiring high privilege (PR:H - likely OpenBao administrator) with attack time penalty (AT:P - suggests timing/race condition element), low attack complexity, and no user interaction. The severity claim is moderate (VC:N/VI:N/VA:N) but scope is marked as HIGH (SC:H), meaning the impact extends beyond the immediate OpenBao application to the PostgreSQL backend database itself. No EPSS score provided; no KEV status supplied - therefore no active exploitation confirmed at time of analysis. The high privilege requirement (PR:H) significantly constrains real-world risk compared to the CWE-89 classification, as exploiters must already possess administrative credentials to OpenBao. However, the SQL injection vector against the PostgreSQL management user represents privilege escalation from OpenBao administrator to database system account. The AT:P (attack time penalty) suggests the vulnerability may require specific conditions (e.g., revocation timing, schema naming patterns) rather than unconditional exploitation. This does NOT reduce risk if those conditions are predictable or controllable by the attacker. The scope extension (SC:H) is the most concerning signal - impact extends beyond OpenBao to the database infrastructure itself.

Exploit ScenarioDerived

An OpenBao administrator with legitimate access to the API intentionally or accidentally supplies a malicious PostgreSQL schema name when configuring role revocation policies. When OpenBao later revokes a role (e.g., when a user's lease expires), the unquoted schema name is interpolated into an SQL REVOKE statement, allowing the attacker to inject additional SQL commands. For example, a schema name like 'public; DROP TABLE audit_logs; --' could be used to destroy audit trails or extract sensitive data from the PostgreSQL database. The attacker requires OpenBao administrative credentials and knowledge of PostgreSQL schema naming conventions to craft effective payloads, but successful exploitation grants arbitrary SQL execution as the OpenBao database management user.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 21, 2026

OpenBao 2.5.2 and earlier fails to properly quote PostgreSQL schema names during role revocation in the PostgreSQL database secrets engine, allowing authenticated high-privilege administrators to execute arbitrary SQL injection as the database management user. The vulnerability affects the credentials management workflow when revoking database roles, potentially compromising database integrity. A vendor-released patch (version 2.5.3) is available.

RemediationAI

Upgrade OpenBao to version 2.5.3 or later immediately - this is the primary and definitive fix provided by the vendor. The patch addresses the SQL injection vulnerability by implementing proper database quoting on schema names. If immediate upgrade is not feasible, apply the workaround provided by OpenBao: audit all table schemas in your PostgreSQL databases and ensure that database users configured for OpenBao role management cannot create new schemas or grant privileges on them. This limits the attacker's ability to inject arbitrary schema names, though it does not eliminate the injection vulnerability itself. The workaround has the trade-off of reducing database flexibility - schema creation restrictions may impact legitimate administrative workflows or future application changes. Review PostgreSQL GRANT statements for OpenBao-managed accounts and restrict them to the minimum necessary permissions. Monitor PostgreSQL logs for unexpected SQL commands or schema creation attempts from OpenBao-managed accounts as a compensating control.

Affected VersionsENISA

openbao < 2.5.3

Affected Packages

go github.com/openbao/openbao fix: 0.0.0-20260420155735-b596b0882620
euvd openbao fix: 2.5.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

OpenBao's PostgreSQL database secrets engine manages dynamic database credentials by creating temporary roles and revoking them when leases expire or are manually revoked. The vulnerability resides in the SQL statement construction for role revocation, specifically in the handling of schema names supplied by PostgreSQL. CWE-89 (SQL Injection) indicates insufficient input validation or parameterization of schema identifiers in dynamically constructed SQL queries. When a schema name contains special characters or SQL metacharacters that are not properly escaped or quoted, an attacker with high privilege access to OpenBao's API can craft malicious schema names to inject arbitrary SQL commands. The affected CPE (cpe:2.3:a:openbao:openbao:*:*:*:*:*:*:*:*) indicates all versions prior to 2.5.3 are impacted. This is a direct port of a vulnerability originally discovered in HashiCorp Vault, indicating the code pattern was inherited during OpenBao's fork from Vault.

Know when Openbao gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 4.6 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N
SUSE 4.9 MEDIUM
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Red Hat 4.9 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

4
Patch released
Apr 24, 2026 - 13:28 nvd
Patch available
Patch available
Apr 21, 2026 - 02:01 EUVD
CVSS changed
Apr 21, 2026 - 01:22 NVD
4.6 (MEDIUM)
CVE Published
Apr 21, 2026 - 00:19 nvd
MEDIUM 4.6

DescriptionCVE.org

OpenBao is an open source identity-based secrets management system. Prior to version 2.5.3, when OpenBao revoked privileges on a role in the PostgreSQL database secrets engine, OpenBao failed to use proper database quoting on schema names provided by PostgreSQL. This could lead to role revocation failures, or more rarely, SQL injection as the management user. This vulnerability was original from HashiCorp Vault. The vulnerability is addressed in v2.5.3. As a workaround, audit table schemas and ensure database users cannot create new schemas and grant privileges on them.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Threat Intel
1
1 source
Social Media
2
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

23
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +23
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

Related Vulnerabilities in OpenBao Secrets Management Issues

View all 4
CVE-2024-2048 CRITICAL
9.8 Mar 04

Vault and Vault Enterprise (“Vault”) TLS certificate auth method did not correctly validate client certificates when con

CVE-2026-63132 CRITICAL
9.2 Sep 22

Timing-based leakage of the single recovery token in OpenBao lets a remote, unauthenticated attacker who can reach the i

CVE-2025-54997 CRITICAL
9.1 Aug 09

OpenBao exists to provide a software solution to manage, store, and distribute sensitive data including secrets, certifi

CVE-2024-7594 HIGH
8.8 Sep 26

Vault’s SSH secrets engine did not require the valid_principals list to contain a value by default. Rated high severity

CVE-2025-59048 HIGH
8.1 Oct 23

Cross-account IAM role impersonation in OpenBao's auth-aws plugin (versions up to and including 0.1.0) lets an authentic

CVE-2026-126309 HIGH
7.6 Nov 13

Transit key import in OpenBao before 2.6.5 and 2.7.0 through 2.7.1 lets an authenticated attacker who is restricted by a

CVE-2026-126312 HIGH
7.6 Nov 13

Authenticated OpenBao clients can evade ACL deny rules protecting AppRole (Role IDs), Cert Auth (CRLs), LDAP Auth (group

CVE-2026-115365 HIGH
7.5 Oct 22

Cross-namespace privilege escalation in OpenBao 2.3.0 through 2.6.2 allows an authenticated token holder to attach speci

CVE-2026-71543 HIGH
7.5 Sep 21

OpenBao versions prior to 2.6.0 fail to reject syntax-significant characters when templated identity data is substituted

CVE-2025-59043 HIGH
7.5

Unauthenticated denial of service in OpenBao 2.4.0 and earlier allows remote attackers to crash the server or exhaust CP

CVE-2025-64761 HIGH
7.5 Nov 25

OpenBao is an open source identity-based secrets management system. Rated high severity (CVSS 7.5), this vulnerability i

CVE-2025-52894 HIGH
7.5 Jun 25

OpenBao versions before 2.3.0 contain an unauthenticated denial-of-service vulnerability in the root rekey and recovery

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
openSUSE Tumbleweed Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy