Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain OpenBao admin credentials
-
DeliveryAccess PostgreSQL secrets engine configuration
-
ExploitInject malicious schema name in role policy
-
ExecutionTrigger role revocation event
-
PersistExecute arbitrary SQL as database user
-
ImpactCompromise 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
4DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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 4Vault and Vault Enterprise (“Vault”) TLS certificate auth method did not correctly validate client certificates when con
Timing-based leakage of the single recovery token in OpenBao lets a remote, unauthenticated attacker who can reach the i
OpenBao exists to provide a software solution to manage, store, and distribute sensitive data including secrets, certifi
Vault’s SSH secrets engine did not require the valid_principals list to contain a value by default. Rated high severity
Cross-account IAM role impersonation in OpenBao's auth-aws plugin (versions up to and including 0.1.0) lets an authentic
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
Authenticated OpenBao clients can evade ACL deny rules protecting AppRole (Role IDs), Cert Auth (CRLs), LDAP Auth (group
Cross-namespace privilege escalation in OpenBao 2.3.0 through 2.6.2 allows an authenticated token holder to attach speci
OpenBao versions prior to 2.6.0 fail to reject syntax-significant characters when templated identity data is substituted
Unauthenticated denial of service in OpenBao 2.4.0 and earlier allows remote attackers to crash the server or exhaust CP
OpenBao is an open source identity-based secrets management system. Rated high severity (CVSS 7.5), this vulnerability i
OpenBao versions before 2.3.0 contain an unauthenticated denial-of-service vulnerability in the root rekey and recovery
Same weakness CWE-89 – SQL Injection
View allVendor StatusVendor
SUSE
Severity: Medium| Product | Status |
|---|---|
| openSUSE Tumbleweed | Fixed |
EUVD-2026-24035
GHSA-6vgr-cp5c-ffx3
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB