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 package | Versions | Reported by |
|---|---|---|
| openbao openbao | < 2.5.3, before 2.5.3 | CVE List, NVD |
| github.com/openbao/openbao (Go) | before 0.0.0-20260420155735-b596b0882620 | GitHub Advisory Database, Go Vulnerability Database |
| openbao (Bitnami) | before 2.5.3 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 4.6medium CVSS:4.0 | 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 |
| GitHub | 4.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
| GitHub | medium CVSS:4.0 | 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 |
| NVD | 4.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-39946 changed 2026-04-21 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-6vgr-cp5c-ffx3 changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-5192 changed 2026-07-27 | CC-BY-4.0 |
| NVD | CVE-2026-39946 changed 2026-11-11 | Public domain |
| Bitnami Vulnerability Database | BIT-OPENBAO-2026-39946 changed 2026-09-08 | Apache-2.0 |