OpenBao allows SQL Injection in PostgreSQL database secrets engine
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- None · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-89.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| openbao | openbao | before 2.5.3 | 2.5.3 | Patch available | CNA |
| — | github.com/openbao/openbao (Go) | before 0.0.0-20260420155735-b596b0882620 | 0.0.0-20260420155735-b596b0882620 | Patch available | GHSA-6vgr-cp5c-ffx3 |
- openbao Vendoropenbao Affected before 2.5.3 Fixed in 2.5.3 Patch available CNA
- github.com/openbao/openbao (Go) Vendor— Affected before 0.0.0-20260420155735-b596b0882620 Fixed in 0.0.0-20260420155735-b596b0882620 Patch available GHSA-6vgr-cp5c-ffx3
Remediation
- Fix · CNA openbao (openbao) Fixed in 2.5.3
- Fix · GHSA-6vgr-cp5c-ffx3 github.com/openbao/openbao (Go) Fixed in 0.0.0-20260420155735-b596b0882620 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-39946
- 2026-10-03 Alias added: GHSA-6vgr-cp5c-ffx3
References
Advisory 2
More Openbao vulnerabilities
- TI-2024-01904 Vault Cert Auth Method Did Not Correctly Validate Non-CA Certificates CVSS 3.1CRITICAL 9.8
- TI-2026-28381 OpenBao has Decompression Bomb via Unbounded Copy in OCI Plugin Extraction (DoS) CVSS 3.1MEDIUM 6.5
- TI-2026-26136 OpenBao lacks user confirmation for OIDC direct callback mode CVSS 3.1CRITICAL 9.6
- TI-2026-26137 OpenBao has Reflected XSS in its OIDC authentication error message CVSS 4.0CRITICAL 9.4
- TI-2025-34701 OpenBao: Privileged Operator May Execute Code on the Underlying Host CVSS 3.1CRITICAL 9.1
- TI-2025-36685 OpenBao vulnerable to denial of service via malicious JSON request processing CVSS 3.1HIGH 7.5
Sources
- CVE-2026-39946 · CVE Program
- CVE-2026-39946 · NVD
- FIRST EPSS
- GHSA-6vgr-cp5c-ffx3 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-39946 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences