CVE-2026-39946: OpenBao allows SQL Injection in PostgreSQL database secrets engine

Published Apr 21, 2026
·
Updated

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

3 affected componentsFixes available
OpenBao OpenBao<2.5.3
go/github.com/openbao/openbao<0.0.0-20260420155735-b596b0882620
0.0.0-20260420155735-b596b0882620
OpenBao OpenBao<2.5.3

Event History

Apr 21, 2026
CVE Published
via MITRE·12:19 AM
Data Sourced
via MITRE·12:19 AM
DescriptionWeakness
Data Sourced
via NVD·01:16 AM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·06:26 PM
Data Sourced
via GitHub·06:26 PM
DescriptionWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

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.

2

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.

3

What type of vulnerability is CVE-2026-39946?

CVE-2026-39946 is an SQL Injection vulnerability affecting the PostgreSQL database secrets engine of OpenBao.

4

Who is affected by CVE-2026-39946?

Users of OpenBao versions prior to 2.5.3 are affected by CVE-2026-39946.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203