Github.com/go-viper/mapstructure/v2: go-viper's mapstructure may leak sensitive information in logs in github.com/go-viper/mapstructure
CVE-2025-11065Published 26 Jan 2026, 19:36 UTC
Real-world risk
2.4/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
5.3
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from redhat)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| Red Hat Enterprise LinuxUbiquitous | not stated | — |
| Red Hat OpenShift Container PlatformWidespread | not stated | — |
| Red Hat Advanced Cluster Management for Kubernetes 2Common | not stated | — |
| Red Hat Advanced Cluster Security 4.4Niche | not stated | — |
| Red Hat Certification Program for Red Hat Enterprise Linux 9Niche | not stated | — |
| Red Hat Certification for Red Hat Enterprise Linux 8Niche | not stated | — |
| Red Hat Trusted Application PipelineNiche | not stated | — |
| Red Hat Trusted Artifact SignerNiche | not stated | — |
| Zero Trust Workload Identity Manager - Tech PreviewNiche | not stated | — |
| github.com/go-viper/mapstructure/v2Niche | < 2.4.0 | 2.4.0 |
What to do
Update to a fixed version: 2.4.0.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data exposureReads secrets, credentials, databases, arbitrary files | From the CVSS vector | 0.80 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | HardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bug | From the CVSS vector | 0.45 |
Threat level T3: Public proof of concept (× 0.95)
A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit
- Reference tagged as exploit (link)
- CISA SSVC: proof of concept
EPSS 0.5% chance of exploitation in 30 days (percentile 46), as of 2026-12-02.
The arithmetic
- Prerequisites multiplied together0.315
- Threat T3: Public proof of concept0.950
- 10 × impact 0.8 × prerequisites 0.315 × threat 0.952.394
- Rounded to one decimal between 0.1 and 102.4
Exploitation and evidence timeline
- 26 Jan 2026 Published
- 3 Dec 2026 Reference tagged as exploit first seen
- 3 Dec 2026 CISA SSVC: proof of concept first seen
- 3 Dec 2026 Risk 2.4 (cvss fallback)
Weakness
CWE-209
References
- https://access.redhat.com/security/cve/CVE-2025-11065redhat, vdb-entry
- https://bugzilla.redhat.com/show_bug.cgi?id=2391829issue-tracking, redhat
- https://github.com/go-viper/mapstructure/commit/742921c9ba2854d27baa64272487fc5075d2c39c
- https://github.com/go-viper/mapstructure/security/advisories/GHSA-2464-8j7c-4cjmexploit
- CVE-2025-11065 on CVE.org