CVE-2025-62705: Github.com/openbao/openbao OpenBao And Vault Leak []byte Vulnerability

MODERATE
Advisory Identifier: GHSA-rc54-2g2c-g36g
CWE-532
Published
Advisory Summary

CVE-2025-62705 is a MODERATE openbao and vault leak []byte vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Github.com/openbao/openbao libraries in the Go ecosystem. The issue involves openbao and vault leak []byte fields in audit logs. Remediation is available by upgrading affected packages to version 0.0.0-20251022165510-cc2c476bac66.

CVE-2025-62705 at a Glance

CVE Identifier CVE-2025-62705
GHSA Identifier GHSA-rc54-2g2c-g36g
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product Github.com/openbao/openbao
Package Ecosystem Go
Published Date
Last Updated

How to Fix CVE-2025-62705

To remediate this vulnerability, upgrade all affected Github.com/openbao/openbao dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/openbao/openbao fixed: 0.0.0-20251022165510-cc2c476bac66
Upgrade github.com/openbao/openbao to 0.0.0-20251022165510-cc2c476bac66
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/openbao/openbao

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-62705, inspect your project dependencies for Github.com/openbao/openbao:

inspect dependencies for github.com/openbao/openbao

Analyze the terminal output to locate any version of Github.com/openbao/openbao in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.0-20251022165510-cc2c476bac66), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In Github.com/openbao/openbao, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact OpenBao's audit log did not appropriately redact fields when relevant subsystems sent `[]byte` response parameters rather than `string`s. This includes, but is not limited to: - `sys/raw` with use of `encoding=base64`, all data would be emitted unredacted to the audit log. - Transit, when performing a signing operation with a derived Ed25519 key, would emit public keys to the audit log. Third-party plugins may be affected. This issue has been present since HashiCorp Vault and continues to impact Vault as of v1.20.4. ### Patches OpenBao v2.4.2 will patch this issue. ### Workarounds If users do not use the above functionality, they are not impacted. To prohibit the use of `sys/raw` globally, ensure `raw_storage_endpoint=false` is set or missing from the server configuration.

CVE-2025-62705 Affected Github.com/openbao/openbao Versions

1 component(s)
Fixed Versions:
0.0.0-20251022165510-cc2c476bac66
Product / Package Ecosystem Affected Versions Fixed Version
github.com/openbao/openbao
Go
< 0.0.0-20251022165510-cc2c476bac66
0.0.0-20251022165510-cc2c476bac66

References

Frequently Asked Questions

What is CVE-2025-62705?
CVE-2025-62705 is a security vulnerability in Github.com/openbao/openbao involving OpenBao and Vault Leak []byte Fields in Audit Logs under CWE-532: Insertion of Sensitive Information into Log File.
Which Github.com/openbao/openbao versions are affected?
Affected versions include releases prior to 0.0.0-20251022165510-cc2c476bac66 across affected packages: github.com/openbao/openbao.
What version fixes CVE-2025-62705?
Upgrading to 0.0.0-20251022165510-cc2c476bac66 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/openbao/openbao affected?
Yes, github.com/openbao/openbao is affected in releases prior to 0.0.0-20251022165510-cc2c476bac66. Upgrade your dependency to 0.0.0-20251022165510-cc2c476bac66 or later.
What CWE is associated with CVE-2025-62705?
CVE-2025-62705 is classified under CWE-532: Insertion of Sensitive Information into Log File (The product writes sensitive information to a log file.).
How can I check Go dependencies for CVE-2025-62705?
Run the dependency tree command: 'inspect dependencies for github.com/openbao/openbao'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-rc54-2g2c-g36g",
  "modified" : "2025-10-23T17:40:56Z",
  "published" : "2025-10-22T19:55:40Z",
  "aliases" : [ "CVE-2025-62705" ],
  "summary" : "OpenBao and Vault Leak []byte Fields in Audit Logs ",
  "details" : "### Impact\n\nOpenBao's audit log did not appropriately redact fields when relevant subsystems sent `[]byte` response parameters rather than `string`s. This includes, but is not limited to:\n\n- `sys/raw` with use of `encoding=base64`, all data would be emitted unredacted to the audit log.\n- Transit, when performing a signing operation with a derived Ed25519 key, would emit public keys to the audit log.\n\nThird-party plugins may be affected.\n\nThis issue has been present since HashiCorp Vault and continues to impact Vault as of v1.20.4. \n\n### Patches\n\nOpenBao v2.4.2 will patch this issue.\n\n### Workarounds\n\nIf users do not use the above functionality, they are not impacted. To prohibit the use of `sys/raw` globally, ensure `raw_storage_endpoint=false` is set or missing from the server configuration.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/openbao/openbao"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.0-20251022165510-cc2c476bac66"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/openbao/openbao/security/advisories/GHSA-rc54-2g2c-g36g"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-62705"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openbao/openbao/commit/cc2c476bac66e1d94776c2629793daec3af625f8"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openbao/openbao"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-532" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-10-22T19:55:40Z",
    "nvd_published_at" : "2025-10-22T22:15:35Z"
  }
}