CVE-2026-39946
JSON

4.6medium

OpenBao allows SQL Injection in PostgreSQL database secrets engine

Severity
4.6medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.24% (higher than 16% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-6vgr-cp5c-ffx3BIT-OPENBAO-2026-39946GO-2026-5192

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.

Affected

Product or packageVersionsReported by
openbao openbao< 2.5.3, before 2.5.3CVE List, NVD
github.com/openbao/openbao (Go)before 0.0.0-20260420155735-b596b0882620GitHub Advisory Database, Go Vulnerability Database
openbao (Bitnami)before 2.5.3Bitnami Vulnerability Database

All scores

GitHub_M4.6medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N
GitHub4.9medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N
NVD4.9medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-89

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

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.

Patches

This was addressed in v2.5.3.

Workarounds

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

Go Vulnerability Database

OpenBao's SQL Injection in PostgreSQL database secrets engine in github.com/openbao/openbao

NVD (es)

OpenBao es un sistema de gestión de secretos de código abierto basado en identidad. Antes de la versión 2.5.3, cuando OpenBao revocaba privilegios en un rol en el motor de secretos de la base de datos PostgreSQL, OpenBao no utilizaba el entrecomillado adecuado de la base de datos en los nombres de esquema proporcionados por PostgreSQL. Esto podría llevar a fallos en la revocación de roles o, más raramente, a inyección SQL como usuario de gestión. Esta vulnerabilidad era original de HashiCorp Vault. La vulnerabilidad se aborda en la v2.5.3. Como solución alternativa, audite los esquemas de las tablas y asegúrese de que los usuarios de la base de datos no puedan crear nuevos esquemas y conceder privilegios sobre ellos.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-39946 changed 2026-04-21CVE Terms of Use
GitHub Advisory DatabaseGHSA-6vgr-cp5c-ffx3 changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2026-5192 changed 2026-07-27CC-BY-4.0
NVDCVE-2026-39946 changed 2026-11-11Public domain
Bitnami Vulnerability DatabaseBIT-OPENBAO-2026-39946 changed 2026-09-08Apache-2.0