{"id":"CVE-2025-11065","title":"A flaw was found in github.com/go-viper/mapstructure/v2, in the field processing component using mapstructure.WeakDecode","summary":"A flaw was found in github.com/go-viper/mapstructure/v2, in the field processing component using mapstructure.WeakDecode. This vulnerability allows information disclosure through detailed error messages that may leak sensitive input valu…","severity":"medium","cvss":5.3,"cvssVector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","cwe":["CWE-209"],"published":"2026-01-26","updated":"2026-06-25","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2025-11065","references":[{"url":"https://access.redhat.com/security/cve/CVE-2025-11065","label":"secalert@redhat.com"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2391829","label":"secalert@redhat.com"},{"url":"https://github.com/go-viper/mapstructure/commit/742921c9ba2854d27baa64272487fc5075d2c39c","label":"secalert@redhat.com"},{"url":"https://github.com/go-viper/mapstructure/security/advisories/GHSA-2464-8j7c-4cjm","label":"secalert@redhat.com"},{"url":"https://github.com/go-viper/mapstructure/security/advisories/GHSA-2464-8j7c-4cjm","label":"134c704f-9b21-4f2e-91b3-4a467353bcc0"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-11065"},{"url":"https://github.com/go-viper/mapstructure"},{"url":"https://pkg.go.dev/vuln/GO-2025-3900"}],"tags":["nvd","osv","go"],"epss":0.00371,"epssPercentile":0.30905,"ingestedAt":"2026-06-29T13:24:34.634Z","aliases":["GHSA-2464-8j7c-4cjm","GO-2025-3900"],"ecosystem":"go","vendor":"go-viper","product":"github.com/go-viper/mapstructure/v2","affected":["github.com/go-viper/mapstructure/v2 < 2.4.0"],"patched":["github.com/go-viper/mapstructure/v2 2.4.0"],"slug":"CVE-2025-11065","body":"## Overview\n\nA flaw was found in github.com/go-viper/mapstructure/v2, in the field processing component using mapstructure.WeakDecode. This vulnerability allows information disclosure through detailed error messages that may leak sensitive input values via malformed user-supplied data processed in security-critical contexts.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.\n\n## Package advisory (CVE-2025-11065)\n\nAffected packages:\n\n- `github.com/go-viper/mapstructure/v2 < 2.4.0`\n\nPatched in:\n\n- `github.com/go-viper/mapstructure/v2 2.4.0`\n\nSource: https://osv.dev/vulnerability/GHSA-2464-8j7c-4cjm","depth":"sunlit","depthScore":29,"depthScoreParts":{"impact":29.2,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}