Advisory

GHSA-6vgr-cp5c-ffx3

Also known as: BIT-openbao-2026-39946, CVE-2026-39946, GO-2026-5192

Summary

OpenBao's SQL Injection in PostgreSQL database secrets engine

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-04-21 18:26 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

github.com/openbao/openbao

Go · All systems

Affected

  • introduced 0, fixed 0.0.0-20260420155735-b596b0882620 (semver)

Fixed versions

0.0.0-20260420155735-b596b0882620

Fix

  • Fixed version 0.0.0-20260420155735-b596b0882620
    go get github.com/openbao/[email protected]

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences