Skip to content
OpenAdvisories
Medium · 4.6 CVE-2026-39946 BIT-openbao-2026-39946EUVD-2026-24035GHSA-6vgr-cp5c-ffx3GO-2026-5192

OpenBao allows SQL Injection in PostgreSQL database secrets engine

Published Apr 21, 2026 · Updated Apr 21, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
openbao openbao < 2.5.3 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed openbao 2.5.3-1.1 openSUSE-SU-2026:10594-1
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1
ReleasePackageFixed inAdvisory
Alpine v3.24 openbao 2.5.4-r0 —
Alpine v3.23 openbao 2.5.4-r0 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling openbao +1 2.5.3-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/openbao/openbao < 0.0.0-20260420155735-b596b0882620 0.0.0-20260420155735-b596b0882620 GHSA-6vgr-cp5c-ffx3

Advisories 3

References