{"schemaVersion":3,"id":"CVE-2026-39946","aliases":["CGA-58pm-gq5j-mp5j","CGA-5hh3-7qx7-637p","CGA-mrm2-m56x-qqcc","CGA-q638-chmf-6583","GHSA-6vgr-cp5c-ffx3","BIT-openbao-2026-39946","GO-2026-5192"],"status":"published","duplicateOf":null,"title":"OpenBao allows SQL Injection in PostgreSQL database secrets engine","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.","dates":{"published":"2026-04-21T00:19:39.578Z","modified":"2026-04-21T13:34:21.088Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4.9,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":4.6,"severity":"medium","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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Wolfi","score":4.6,"severity":"medium","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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Go","score":4.6,"severity":"medium","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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":4.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","exploitability":3.1,"impact":6,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Chainguard","score":4.6,"severity":"medium","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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":4.6,"severity":"medium","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":4.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00391,"percentile":0.32035,"severity":"low","asOf":"2026-10-22T00:00:00.000Z","change":{"pp":0.15600000000000003,"baselineDate":"2026-09-22T00:00:00.000Z","baselineScore":0.00235},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00391,"percentile":0.32035}],"last30":[{"date":"2026-09-22T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00235,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00391,"percentile":0.32035}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","description":"The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/89.html"}],"affected":[{"vendor":"chainguard","product":"openbao","name":"openbao","label":"openbao","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/openbao","purlType":"apk","versions":[{"text":"< 2.5.3-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.5.3-r0","eol":{"isEol":null,"eolDate":null,"matchMethod":"name_exact","cycle":null,"product":{"name":"openbao","label":"OpenBao","category":"server-app"}},"hubHref":null},{"vendor":"chainguard","product":"openbao-compat","name":"openbao-compat","label":"openbao-compat","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/openbao-compat","purlType":"apk","versions":[{"text":"< 2.5.3-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.5.3-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"openbao","name":"openbao","label":"openbao","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/openbao","purlType":"apk","versions":[{"text":"< 2.5.3-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.5.3-r0","eol":{"isEol":null,"eolDate":null,"matchMethod":"name_exact","cycle":null,"product":{"name":"openbao","label":"OpenBao","category":"server-app"}},"hubHref":null},{"vendor":"wolfi","product":"openbao-compat","name":"openbao-compat","label":"openbao-compat","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/openbao-compat","purlType":"apk","versions":[{"text":"< 2.5.3-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.5.3-r0","eol":null,"hubHref":null},{"vendor":"github.com/openbao","product":"openbao","name":"github.com/openbao/openbao","label":"openbao","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/openbao/openbao","purlType":"golang","versions":[{"text":"< 0.0.0-20260420155735-b596b0882620","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.0.0-20260420155735-b596b0882620","eol":{"isEol":null,"eolDate":null,"matchMethod":"name_exact","cycle":null,"product":{"name":"openbao","label":"OpenBao","category":"server-app"}},"hubHref":null},{"vendor":"openbao","product":"openbao","name":"openbao","label":"openbao","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.5.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.5.3","eol":{"isEol":null,"eolDate":null,"matchMethod":"name_exact","cycle":null,"product":{"name":"openbao","label":"OpenBao","category":"server-app"}},"hubHref":"/vendor/openbao/openbao"}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/openbao/openbao/security/advisories/GHSA-6vgr-cp5c-ffx3","label":"github.com/openbao/openbao/security/advisories/GHSA-6vgr-cp5c-ffx3","hostname":"github.com","tags":["X Refsource CONFIRM","Advisory","WEB","Vendor Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/39xxx/CVE-2026-39946.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2026/39xxx/CVE-2026-39946.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39946","label":"nvd.nist.gov/vuln/detail/CVE-2026-39946","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/openbao/openbao/pull/2931","label":"github.com/openbao/openbao/pull/2931","hostname":"github.com","tags":["WEB","FIX"]},{"url":"https://github.com/openbao/openbao/commit/80693a46ebb4fc2455f1c51ed1dd853b28c2fd77","label":"github.com/openbao/openbao/commit/80693a46ebb4fc2455f1c51ed1dd853b28c2fd77","hostname":"github.com","tags":["WEB","FIX"]},{"url":"https://github.com/openbao/openbao","label":"github.com/openbao/openbao","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/openbao/openbao/releases/tag/v2.5.3","label":"github.com/openbao/openbao/releases/tag/v2.5.3","hostname":"github.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2026:10594-1","OPENSUSE-SU-2026:21483-1"],"duplicates":[],"related":["CGA-PXJR-X3R5-PX84","OPENSUSE-SU-2026:10594-1","OPENSUSE-SU-2026:21483-1"]},"timeline":[{"kind":"published","date":"2026-04-21T00:19:39.578Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-04-21T13:34:21.088Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":20,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T17:20:26.611Z","stale":false,"partial":false}}