{"id":"CVE-2026-39946","published":"2026-04-21T00:19:39Z","modified":"2026-04-21T13:34:21Z","title":"OpenBao allows SQL Injection in PostgreSQL database secrets engine","vendor":"openbao","product":"openbao","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.6,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00406,"percentile":0.26476,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/openbao/openbao/security/advisories/GHSA-6vgr-cp5c-ffx3","tags":["x_refsource_CONFIRM"]}],"priority":{"score":8.5,"factors":[{"name":"EPSS percentile","points":5.3},{"name":"CVSS severity","points":3.22}]},"vendorSlug":"openbao","affectedVersions":[{"vendor":"openbao","product":"openbao","versions":["< 2.5.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-21T13:34:12.690431Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/openbao/openbao","vulnerableRanges":["<0.0.0-20260420155735-b596b0882620"],"patched":["0.0.0-20260420155735-b596b0882620"],"from":["GHSA-6vgr-cp5c-ffx3","GO-2026-5192"],"provenance":"source"}],"summary":{"text":"OpenBao, an open source secrets management system, has a flaw in its PostgreSQL database secrets engine where schema names returned by PostgreSQL are not properly quoted when privileges on a role are revoked. An attacker with high-privilege authentication and network access to the OpenBao instance can exploit this, most often causing role revocation failures, and in rarer cases SQL injection that runs as the management user.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:32Z"},"euvd":{"id":"EUVD-2026-24035","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-62705","published":"2025-10-22","fixed":"0.0.0-20251022165510-cc2c476bac66","kev":false},{"cve":"CVE-2026-33758","published":"2026-03-27","fixed":"0.0.0-20260325133417-6e2b2dd84f0e","kev":false},{"cve":"CVE-2026-33757","published":"2026-03-27","fixed":"0.0.0-20260325142553-e32103951925","kev":false,"link":{"from":"CVE-2026-33757","to":"CVE-2026-39946","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/openbao/openbao","fromFixed":"0.0.0-20260325142553-e32103951925","toFixed":"0.0.0-20260420155735-b596b0882620","daysApart":25}]}},{"cve":"CVE-2026-39946","published":"2026-04-21","fixed":"0.0.0-20260420155735-b596b0882620","kev":false},{"cve":"CVE-2026-39388","published":"2026-04-21","fixed":"0.0.0-20260420160924-abe84e1af4c3","kev":false,"link":{"from":"CVE-2026-39946","to":"CVE-2026-39388","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/openbao/openbao","fromFixed":"0.0.0-20260420155735-b596b0882620","toFixed":"0.0.0-20260420160924-abe84e1af4c3","daysApart":0}]}},{"cve":"CVE-2026-40264","published":"2026-04-21","fixed":"0.0.0-20260420162526-f58111d2ca54","kev":false},{"cve":"CVE-2026-42186","published":"2026-05-14","fixed":"0.0.0-20260420173541-6d2e0506e2b4","kev":false}],"package":"Go:github.com/openbao/openbao"}}