CVE-2026-39946: OpenBao allows SQL Injection in PostgreSQL database secrets engine
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.
Other sources
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.
— MITRE
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-39946?
CVE-2026-39946 is classified as a critical vulnerability due to its potential for SQL Injection, which can lead to unauthorized access to sensitive data.
How do I fix CVE-2026-39946?
To fix CVE-2026-39946, upgrade OpenBao to version 2.5.3 or later, where the SQL Injection vulnerability has been addressed.
What type of vulnerability is CVE-2026-39946?
CVE-2026-39946 is an SQL Injection vulnerability affecting the PostgreSQL database secrets engine of OpenBao.
Who is affected by CVE-2026-39946?
Users of OpenBao versions prior to 2.5.3 are affected by CVE-2026-39946.
What could a successful exploit of CVE-2026-39946 allow an attacker to do?
A successful exploit of CVE-2026-39946 could allow an attacker to execute arbitrary SQL queries, potentially exposing sensitive data within the database.