All vulnerabilities

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.

From openbao/openbao's security advisory.

Workarounds

Audit table schemas and ensure database users cannot create new schemas and grant privileges on them.

Workarounds as given by openbao/openbao's security advisory.

Affected software

SoftwareAffected versions
OpenBaoServers and applications · cpe:a:openbao:openbao
  • Every version before 2.5.3
OpenBaoServers and applications · github:openbao/openbao
  • Every version before 2.5.3

About OpenBao

foss-licensed cross-platform password manager and authentication tool

From Wikidata, CC0 1.0.
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

Release lines

ReleaseLatestSecurity fixes
2.72.7.2Yes
2.62.6.5Ended 1 Oct 2026
2.52.5.5Ended 14 Jul 2026
2.42.4.4Ended 5 Feb 2026
2.32.3.2Ended 29 Aug 2025
2.22.2.2Ended 26 Jun 2025

From endoflife.date.

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