CVE-2025-52893: Github.com/openbao/openbao/sdk/v2 OpenBao Inserts Sensitive Information Into Vulnerability

MODERATE
Advisory Identifier: GHSA-8f5r-8cmq-7fmq
CVSS 4.5
CWE-532
Published
Advisory Summary

CVE-2025-52893 is a MODERATE (CVSS 4.5) openbao inserts sensitive information into vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Github.com/openbao/openbao/sdk/v2 libraries in the Go ecosystem. The issue involves openbao inserts sensitive information into log file when processing malformed data. Remediation is available by upgrading affected packages to version 2.3.0.

CVE-2025-52893 at a Glance

CVE Identifier CVE-2025-52893
GHSA Identifier GHSA-8f5r-8cmq-7fmq
Severity MODERATE
CVSS v3.1 Base Score 4.5
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product Github.com/openbao/openbao/sdk/v2
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 4.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2025-52893

To remediate this vulnerability, upgrade all affected Github.com/openbao/openbao/sdk/v2 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/sdk/v2 fixed: 2.3.0
Upgrade github.com/openbao/openbao/sdk/v2 to 2.3.0
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/sdk/v2

How to Check if You Are Affected

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

inspect dependencies for github.com/openbao/openbao/sdk/v2

Analyze the terminal output to locate any version of Github.com/openbao/openbao/sdk/v2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.3.0), 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/sdk/v2, 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 before v2.3.0 and HashiCorp Vault as of the current v1.19.5 may leak sensitive information in logs when processing malformed data. This is separate from the earlier HCSEC-2025-09 / CVE-2025-4166. ### Patches This issue has been fixed in OpenBao v2.3.0 and later. ### Workarounds Like with HCSEC-2025-09, there is no known workaround except to ensure properly formatted requests from all clients. ### Remediation Users with the capability to search through server and audit logs for any possible exposed secrets can refer to the following snippets to aid in searching: Audit Log ``` ... "error":"error converting input for field \"password\": expected type 'string', got unconvertible type 'map[string]interface {}', value: '<sensitive data>'" ... ``` Server Log ``` error converting input for field "password": expected type 'string', got unconvertible type 'map[string]interface {}', value: '<sensitive data>' ``` If any matches are found, rotating the affected secret is advised. ### References See also: https://discuss.hashicorp.com/t/hcsec-2025-09-vault-may-expose-sensitive-information-in-error-logs-when-processing-malformed-data-with-the-kv-v2-plugin/74717 See also: https://github.com/go-viper/mapstructure/releases/tag/v2.3.0 See also: https://github.com/go-viper/mapstructure/pull/105 -> https://github.com/go-viper/mapstructure/commit/ed3f92181528ff776a0324107b8b55026e93766a

CVE-2025-52893 Affected Github.com/openbao/openbao/sdk/v2 Versions

1 component(s)
Fixed Versions:
2.3.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/openbao/openbao/sdk/v2
Go
< 2.3.0
2.3.0

References

Frequently Asked Questions

What is CVE-2025-52893?
CVE-2025-52893 is a security vulnerability in Github.com/openbao/openbao/sdk/v2 involving OpenBao Inserts Sensitive Information into Log File when processing malformed data under CWE-532: Insertion of Sensitive Information into Log File.
Which Github.com/openbao/openbao/sdk/v2 versions are affected?
Affected versions include releases prior to 2.3.0 across affected packages: github.com/openbao/openbao/sdk/v2.
What version fixes CVE-2025-52893?
Upgrading to 2.3.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/openbao/openbao/sdk/v2 affected?
Yes, github.com/openbao/openbao/sdk/v2 is affected in releases prior to 2.3.0. Upgrade your dependency to 2.3.0 or later.
What is the CVSS score of CVE-2025-52893?
CVE-2025-52893 has a CVSS v3.1 base score of 4.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2025-52893?
CVE-2025-52893 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-52893?
Run the dependency tree command: 'inspect dependencies for github.com/openbao/openbao/sdk/v2'. 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-8f5r-8cmq-7fmq",
  "modified" : "2025-07-29T16:00:27Z",
  "published" : "2025-06-26T21:25:00Z",
  "aliases" : [ "CVE-2025-52893" ],
  "summary" : "OpenBao Inserts Sensitive Information into Log File when processing malformed data",
  "details" : "### Impact\n\nOpenBao before v2.3.0 and HashiCorp Vault as of the current v1.19.5 may leak sensitive information in logs when processing malformed data. This is separate from the earlier HCSEC-2025-09 / CVE-2025-4166. \n\n### Patches\n\nThis issue has been fixed in OpenBao v2.3.0 and later.\n\n### Workarounds\n\nLike with HCSEC-2025-09, there is no known workaround except to ensure properly formatted requests from all clients.\n\n### Remediation\n\nUsers with the capability to search through server and audit logs for any possible exposed secrets can refer to the following snippets to aid in searching:\n\nAudit Log\n\n```\n... \"error\":\"error converting input for field \\\"password\\\": expected type 'string', got unconvertible type 'map[string]interface {}', value: '<sensitive data>'\" ...\n```\n\nServer Log\n\n```\nerror converting input for field \"password\": expected type 'string', got unconvertible type 'map[string]interface {}', value: '<sensitive data>'\n```\n\nIf any matches are found, rotating the affected secret is advised.\n\n### References\n\nSee also: https://discuss.hashicorp.com/t/hcsec-2025-09-vault-may-expose-sensitive-information-in-error-logs-when-processing-malformed-data-with-the-kv-v2-plugin/74717\n\nSee also: https://github.com/go-viper/mapstructure/releases/tag/v2.3.0\n\nSee also: https://github.com/go-viper/mapstructure/pull/105 -> https://github.com/go-viper/mapstructure/commit/ed3f92181528ff776a0324107b8b55026e93766a",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/openbao/openbao/sdk/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.3.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/openbao/openbao/security/advisories/GHSA-8f5r-8cmq-7fmq"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-52893"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/go-viper/mapstructure/pull/105"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/go-viper/mapstructure/commit/ed3f92181528ff776a0324107b8b55026e93766a"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openbao/openbao/commit/cf5e920badbf96b41253534a3fd5ff5063bf4b30"
  }, {
    "type" : "WEB",
    "url" : "https://discuss.hashicorp.com/t/hcsec-2025-09-vault-may-expose-sensitive-information-in-error-logs-when-processing-malformed-data-with-the-kv-v2-plugin/74717"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/go-viper/mapstructure/releases/tag/v2.3.0"
  }, {
    "type" : "PACKAGE",
    "url" : "github.com/openbao/openbao/sdk/v2/framework"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-532" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-06-26T21:25:00Z",
    "nvd_published_at" : "2025-06-25T17:15:39Z"
  }
}