Servers and applications
CVE-2026-39946
OpenBao allows SQL Injection in PostgreSQL database secrets engine
- Severity
- Medium 4.6
- Published
- 20 Apr 2026
- Last changed
- 11 Nov 2026
- Added to UpHeron
- 1 Nov 2026
- Fixed in
- 2.5.3
- Exploit chance
- 0.2% in the next 30 daysHigher than 15% of CVEs. EPSS by FIRST, 19 Nov 2026
- Weakness
- SQL injection (CWE-89)
- Attack
- Over the network · Only under certain conditions · Needs an administrator account · No user action needed
- CVSS vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X- Also known as
- GHSA-6vgr-cp5c-ffx3
- Sources
- NVD, Project advisories (GitHub)
Description
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 originally from HashiCorp Vault.
Workarounds
Audit table schemas and ensure database users cannot create new schemas and grant privileges on them.
Affected software
| Software | Affected versions |
|---|---|
OpenBaoServers and applications · cpe:a:openbao:openbao |
|
OpenBaoServers and applications · github:openbao/openbao |
|
About OpenBao
foss-licensed cross-platform password manager and authentication tool
- Docker Hub pulls
- 6,722,933Docker Hub, 15 Nov 2026
- GitHub stars
- 9,019GitHub, 15 Nov 2026
- Forks
- 691GitHub, 15 Nov 2026
- Latest release
- v2.7.2GitHub, 15 Nov 2026
- Released
- 26 Oct 2026GitHub
- License
- Mozilla Public License, version 2.0Wikidata
- Written in
- GoWikidata
- First published on GitHub
- 9 Nov 2023GitHub
Website Source code Docker image
Release lines
| Release | Latest | Security fixes |
|---|---|---|
| 2.7 | 2.7.2 | Yes |
| 2.6 | 2.6.5 | Ended 1 Oct 2026 |
| 2.5 | 2.5.5 | Ended 14 Jul 2026 |
| 2.4 | 2.4.4 | Ended 5 Feb 2026 |
| 2.3 | 2.3.2 | Ended 29 Aug 2025 |
| 2.2 | 2.2.2 | Ended 26 Jun 2025 |
From endoflife.date.
Vulnerabilities in OpenBao
- In our list
- 72
- Published in the last 12 months
- 55
- Critical, last 12 months
- 4
- High, last 12 months
- 13
- Known exploited
- 0
- CVE-2026-126309OpenBao before 2.6.5 and 2.7.2 Path Traversal in Transit Key ImportHigh 7.6 13 Nov 2026
- CVE-2026-126310OpenBao before 2.6.5 and 2.7.2 OIDC Provider Authentication Bypass via Client CredentialsHigh 7.0 13 Nov 2026
- CVE-2026-126311OpenBao before 2.6.5 and 2.7.2 Wildcard Principals in SSH Certificates via Identity TemplatesMedium 4.6 13 Nov 2026
- CVE-2026-126312OpenBao before 2.6.5 and 2.7.2 ACL Bypass via Non-Canonical Plugin PathsHigh 7.6 13 Nov 2026
- GHSA-736f-82w7-hj22ACL Bypass via Non-Canonical URL Access in OpenBao's AppRole, Cert Auth, LDAP, and RADIUS pluginsHigh 7.6 26 Oct 2026
- GHSA-h76r-48x5-36hgOpenBao SSH secrets engine allows wildcard '*' in host cert principals via identity templatesMedium 4.6 26 Oct 2026
References
- NVD https://nvd.nist.gov/vuln/detail/CVE-2026-39946
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-39946
- GitHub Advisory Database https://github.com/advisories/GHSA-6vgr-cp5c-ffx3
- github.com https://github.com/openbao/openbao/security/advisories/GHSA-6vgr-cp5c-ffx3