CVE-2026-39946

OpenBao allows SQL Injection in PostgreSQL database secrets engine

Published Apr 21, 2026 CVSS 4.0 · 4.6 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

OpenBao, an open source identity-based secrets management system, failed to properly quote schema names when revoking privileges in its PostgreSQL database secrets engine before version 2.5.3. This flaw allows crafted schema names to bypass normal quoting mechanisms, potentially resulting in role revocation failures or, in less common cases, SQL injection executed with the privileges of the OpenBao management user. The injection could compromise confidentiality, integrity, or availability of the database data.

Affected Systems

Vulnerable installations of OpenBao up to and including version 2.5.2. The issue is specific to deployments that employ the PostgreSQL database secrets engine for role management.

Risk and Exploitability

The CVSS score of 4.6 indicates moderate severity, and the EPSS score is unavailable, suggesting no readily available data on exploitation likelihood. Because the vulnerability requires exploitation of the OpenBao API or management path, it is likely to be an internal or authenticated vector rather than a fully remote public one. The vulnerability is not listed in CISA’s KEV catalog, which reduces the urgency of immediate action but still warrants remediation due to the potential for privilege escalation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade OpenBao to version 2.5.3 or later to eliminate the quoting flaw.
  • If an upgrade cannot be performed immediately, audit existing PostgreSQL schema names for special characters and restrict database users from creating new schemas or granting privileges that could be leveraged by malicious input.
  • Ensure that the database user or role used by OpenBao for the secrets engine is limited to the minimum necessary privileges and that any input used to form SQL statements is properly validated or escaped, following the principle of putting input validation before database interaction.

Generated by OpenCVE AI on April 21, 2026 at 15:33 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-6vgr-cp5c-ffx3 OpenBao's SQL Injection in PostgreSQL database secrets engine
History
Type Values Removed Values Added
CPEs cpe:2.3:a:openbao:openbao:*:*:*:*:*:*:*:*
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N'}

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Openbao
Openbao openbao
Vendors & Products Openbao
Openbao openbao
Type Values Removed Values Added
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.
Title OpenBao allows SQL Injection in PostgreSQL database secrets engine
Weaknesses CWE-89
References
Metrics cvssV4_0

{'score': 4.6, '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'}

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 21, 2026, 1:34 PM
Reserved
Apr 7, 2026, 10:40 PM
Status
Analyzed
Published
Apr 21, 2026, 1:16 AM
Modified
Nov 11, 2026, 11:10 PM
Severity
Moderate
Public date
Apr 21, 2026, 12:19 AM