GHSA-f7c3-mhj2-9pvg

Suggest an improvement
Source
https://github.com/advisories/GHSA-f7c3-mhj2-9pvg
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-f7c3-mhj2-9pvg/GHSA-f7c3-mhj2-9pvg.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-f7c3-mhj2-9pvg
Aliases
Published
2025-08-08T14:42:49Z
Modified
2026-07-29T03:49:30Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
OpenBao TOTP Secrets Engine Code Reuse
Details

Impact

OpenBao's TOTP secrets engine could accept valid codes multiple times rather than strictly-once. This was caused by unexpected normalization in the underlying TOTP library.

Patches

OpenBao v2.3.2 will patch this issue.

In patching, codes which were not normalized (strictly N numeric digits) will now be rejected. This is a potentially breaking change.

Workarounds

TOTP code verification is a privileged action; only trusted systems should be verifying codes. Ensure that all codes are first normalized before submitting to the OpenBao endpoint.

References

This issue was disclosed to HashiCorp and is the OpenBao equivalent of the following tickets:

Database specific
{
    "cwe_ids":  [
        "CWE-156"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2025-08-08T14:42:49Z",
    "nvd_published_at":  "2025-08-09T03:15:46Z",
    "severity":  "MODERATE"
}
References

Affected packages

Go / github.com/openbao/openbao

Package

Name
github.com/openbao/openbao
View open source insights on deps.dev
Purl
pkg:golang/github.com/openbao/openbao

Affected ranges

Type
SEMVER
Events
Introduced
0.1.0
Fixed
2.3.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-f7c3-mhj2-9pvg/GHSA-f7c3-mhj2-9pvg.json"

Go / github.com/openbao/openbao

Package

Name
github.com/openbao/openbao
View open source insights on deps.dev
Purl
pkg:golang/github.com/openbao/openbao

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.0.0-20250806193153-183891f8d535

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-f7c3-mhj2-9pvg/GHSA-f7c3-mhj2-9pvg.json"