# CVE-2026-39946: OpenBao allows SQL Injection in PostgreSQL database secrets engine

- Severity: Medium 4.6 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2026-04-21T00:19:39.578Z
- Modified: 2026-11-11T23:10:00.263Z
- Also known as: GHSA-6vgr-cp5c-ffx3, BIT-OPENBAO-2026-39946, GO-2026-5192
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- openbao openbao: < 2.5.3; before 2.5.3
- github.com/openbao/openbao (Go): before 0.0.0-20260420155735-b596b0882620
- openbao (Bitnami): before 2.5.3

## Every score

- GitHub_M: CVSS:4.0 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`
- GitHub: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 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`
- NVD: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/openbao/openbao/security/advisories/GHSA-6vgr-cp5c-ffx3> (advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-39946> (advisory, web)
- <https://github.com/openbao/openbao/pull/2931> (fix, web)
- <https://github.com/openbao/openbao/commit/80693a46ebb4fc2455f1c51ed1dd853b28c2fd77> (fix, web)
- <https://github.com/openbao/openbao> (package)
- <https://github.com/openbao/openbao/releases/tag/v2.5.3> (web)

## Sources

- CVE List: [CVE-2026-39946](https://www.cve.org/CVERecord?id=CVE-2026-39946), CVE Terms of Use, modified 2026-04-21
- GitHub Advisory Database: [GHSA-6vgr-cp5c-ffx3](https://github.com/advisories/GHSA-6vgr-cp5c-ffx3), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-5192](https://pkg.go.dev/vuln/GO-2026-5192), CC-BY-4.0, modified 2026-07-27
- NVD: [CVE-2026-39946](https://nvd.nist.gov/vuln/detail/CVE-2026-39946), Public domain, modified 2026-11-11
- Bitnami Vulnerability Database: [BIT-OPENBAO-2026-39946](https://osv.dev/vulnerability/BIT-OPENBAO-2026-39946), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-39946 · Whole record: https://cve.day/CVE-2026-39946.json · Rebuilt by cve.day 2026-11-25T22:59:19.081Z
