{"answers":{"affected":"4 open source packages ship an affected version, including github.com/openbao/openbao and openbao. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-39946 in the wild and no public exploit code.","fix":"Upgrade github.com/openbao/openbao to 0.0.0-20260420155735-b596b0882620 or later.","what":"CVE-2026-39946 is a medium-severity SQL injection vulnerability in openbao, published on 21 Apr 2026. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-39946 and fix it if it is affected.\n\nWhat it is: CVE-2026-39946 is a medium-severity SQL injection vulnerability in openbao, published on 21 Apr 2026. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-39946 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/openbao/openbao (Go): affected all versions; fixed in 0.0.0-20260420155735-b596b0882620\n- github.com/openbao/openbao (Go): affected all versions; fixed in 0.0.0-20260420155735-b596b0882620\n- github.com/openbao/openbao (Go): affected all versions; fixed in 0.0.0-20260420155735-b596b0882620\n- openbao (Bitnami): affected all versions; fixed in 2.5.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-39946/ (Markdown: https://insights.sbomify.com/CVE-2026-39946/index.md)","id":"CVE-2026-39946","markdown":"https://insights.sbomify.com/CVE-2026-39946/index.md","name":"CVE-2026-39946","record":{"aliases":["BIT-openbao-2026-39946","GHSA-6vgr-cp5c-ffx3","GO-2026-5192"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"OpenBao secrets manager","requires_auth":"high_privilege","summary":"Attackers can inject SQL via schema names in the PostgreSQL secrets engine, potentially executing code or modifying data.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"openbao","vendor":"openbao"}],"cvss":{"score":4.6,"severity":"medium","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"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.","ecosystems":["Bitnami","Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"OpenBao allows SQL Injection in PostgreSQL database secrets engine","id":"CVE-2026-39946","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"sql_injection","year":"2026"},"n_packages":4,"n_references":1,"next":{"headline":"Cacti has SQL Injection via rfilter parameter in RLIKE clauses","id":"CVE-2026-39948"},"packages":[{"ecosystem":"Bitnami","fixed":["2.5.3"],"introduced":["0"],"last_affected":[],"package":"openbao","purl":"pkg:bitnami/openbao","source":"BIT-openbao-2026-39946"},{"ecosystem":"Go","fixed":["0.0.0-20260420155735-b596b0882620"],"introduced":["0"],"last_affected":[],"package":"github.com/openbao/openbao","purl":null,"source":"GHSA-6vgr-cp5c-ffx3"},{"ecosystem":"Go","fixed":["0.0.0-20260420155735-b596b0882620"],"introduced":["0"],"last_affected":[],"package":"github.com/openbao/openbao","purl":"pkg:golang/github.com/openbao/openbao","source":"GHSA-6vgr-cp5c-ffx3"},{"ecosystem":"Go","fixed":["0.0.0-20260420155735-b596b0882620"],"introduced":["0"],"last_affected":[],"package":"github.com/openbao/openbao","purl":"pkg:golang/github.com/openbao/openbao","source":"GO-2026-5192"}],"prev":{"headline":"Ceph: CephX AES Authentication error","id":"CVE-2026-39944"},"products":["openbao"],"published":"2026-04-21","related":[{"cvss_score":9.6,"headline":"OpenBao lacks user confirmation for OIDC direct callback mode","id":"CVE-2026-33757","kev_date_added":null,"published":"2026-03-27"},{"cvss_score":9.4,"headline":"OpenBao has Reflected XSS in its OIDC authentication error message","id":"CVE-2026-33758","kev_date_added":null,"published":"2026-03-27"},{"cvss_score":9.1,"headline":"OpenBao: Privileged Operator May Execute Code on the Underlying Host","id":"CVE-2025-54997","kev_date_added":null,"published":"2025-08-09"},{"cvss_score":7.5,"headline":"OpenBao Privileged Operator Identity Group Root Escalation","id":"CVE-2025-64761","kev_date_added":null,"published":"2025-11-25"},{"cvss_score":7.5,"headline":"OpenBao vulnerable to denial of service via malicious JSON request processing","id":"CVE-2025-59043","kev_date_added":null,"published":"2025-10-17"},{"cvss_score":7.2,"headline":"OpenBao Root Namespace Operator May Elevate Token Privileges","id":"CVE-2025-54996","kev_date_added":null,"published":"2025-08-09"},{"cvss_score":6.9,"headline":"OpenBao Vulnerable to Unauthenticated Rekey Operation Cancellation","id":"CVE-2025-52894","kev_date_added":null,"published":"2025-06-25"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-21","vendors":["openbao"]},"summary":"Attackers can inject SQL via schema names in the PostgreSQL secrets engine, potentially executing code or modifying data.","url":"https://insights.sbomify.com/CVE-2026-39946/"}