{"id":"CVE-2025-52893","aliases":["GHSA-8f5r-8cmq-7fmq","BIT-openbao-2025-52893","GO-2025-3780"],"title":"OpenBao Inserts Sensitive Information into Log File when processing malformed data","summary":"OpenBao Inserts Sensitive Information into Log File when processing malformed data","severity":"medium","cvss":4.5,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N","vendor":"openbao","product":"github.com/openbao/openbao/sdk/v2","ecosystem":"go","affected":["github.com/openbao/openbao/sdk/v2 < 2.3.0"],"patched":["github.com/openbao/openbao/sdk/v2 2.3.0"],"published":"2025-06-26","updated":"2026-07-27","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-8f5r-8cmq-7fmq","references":[{"url":"https://github.com/openbao/openbao/security/advisories/GHSA-8f5r-8cmq-7fmq"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-52893"},{"url":"https://github.com/go-viper/mapstructure/pull/105"},{"url":"https://github.com/go-viper/mapstructure/commit/ed3f92181528ff776a0324107b8b55026e93766a"},{"url":"https://github.com/openbao/openbao/commit/cf5e920badbf96b41253534a3fd5ff5063bf4b30"},{"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"},{"url":"https://github.com/go-viper/mapstructure/releases/tag/v2.3.0"},{"url":"github.com/openbao/openbao/sdk/v2/framework"}],"tags":["osv","go"],"epss":0.00304,"epssPercentile":0.23295,"ingestedAt":"2026-07-27T19:08:54.267Z","slug":"CVE-2025-52893","body":"## Overview\n\n### 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\n\n## Affected packages\n\n- `github.com/openbao/openbao/sdk/v2 < 2.3.0`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `github.com/openbao/openbao/sdk/v2 2.3.0`","depth":"sunlit","depthScore":25,"depthScoreParts":{"impact":24.8,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}