Vulnerability · Published Jan 26, 2026 · Assigned by redhat
CVE-2025-11065Github.com/go-viper/mapstructure/v2: go-viper's mapstructure may leak sensitive information in logs in github.com/go-viper/mapstructure
Medium 5.3
In plain English
A medium-severity security flaw in github.com/go-viper/mapstructure/v2. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 44% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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 values via malformed user-supplied data processed in security-critical contexts.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:13 | golang-github-go-viper-mapstructure | no fix listed | DEBIAN-CVE-2025-11065 |
| Debian:14 | golang-github-go-viper-mapstructure | 2.4.0-1 | DEBIAN-CVE-2025-11065 |
| Go | github.com/go-viper/mapstructure | no fix listed | GO-2025-3900 |
| Go | github.com/go-viper/mapstructure/v2 | 2.4.0 | GHSA-2464-8j7c-4cjm |
| Go | github.com/go-viper/mapstructure/v2 | 2.4.0 | GO-2025-3900 |
| Ubuntu:25.10 | golang-github-go-viper-mapstructure | no fix listed | UBUNTU-CVE-2025-11065 |
| Ubuntu:26.04:LTS | golang-github-go-viper-mapstructure | no fix listed | UBUNTU-CVE-2025-11065 |
| Ubuntu:26.10 | golang-github-go-viper-mapstructure | no fix listed | UBUNTU-CVE-2025-11065 |
Affected products (as reported)
Weakness: CWE-209 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
References
- https://access.redhat.com/security/cve/CVE-2025-11065 vdb-entry, x_refsource_REDHAT
- RHBZ#2391829 issue-tracking, x_refsource_REDHAT
- https://github.com/go-viper/mapstructure/commit/742921c9ba2854d27baa64272487fc5075d2c39c
- https://github.com/go-viper/mapstructure/security/advisories/GHSA-2464-8j7c-4cjm