Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/openbao/openbao
  4. ›
  5. CVE-2026-39946

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

April 21, 2026 (updated April 27, 2026)

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.

References

  • github.com/advisories/GHSA-6vgr-cp5c-ffx3
  • github.com/openbao/openbao/commit/80693a46ebb4fc2455f1c51ed1dd853b28c2fd77
  • github.com/openbao/openbao/pull/2931
  • github.com/openbao/openbao/releases/tag/v2.5.3
  • github.com/openbao/openbao/security/advisories/GHSA-6vgr-cp5c-ffx3
  • nvd.nist.gov/vuln/detail/CVE-2026-39946

Code Behaviors & Features

Detect and mitigate CVE-2026-39946 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.0.0-20260420155735-b596b0882620

Fixed versions

  • 0.0.0-20260420155735-b596b0882620

Solution

Upgrade to version 0.0.0-20260420155735-b596b0882620 or above.

Impact 4.9 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

go/github.com/openbao/openbao/CVE-2026-39946.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 13 May 2026 12:23:32 +0000.