# CVE-2025-11065: go-viper mapstructure information disclosure in WeakDecode

Source: https://junglewise.ai/threats/cve-2025-11065-go-viper-mapstructure-information-disclosure-in-weakdecode  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-01-26. Updated: 2026-06-25  
License: CC BY 4.0 with a link back

CVE-2025-11065 · Severity: medium · CVSS 5.3 · Published 2026-01-26

A vulnerability in a popular Go programming library used for data processing could allow sensitive information to be leaked in system logs. If an application uses this library to handle sensitive data like passwords or security tokens, a specially crafted but malformed request could trigger an error message that includes the sensitive value in plain text. This could allow unauthorized individuals with access to system logs to view private data.

Technologies: [github.com/go-viper/mapstructure/v2 (Go)](https://junglewise.ai/threats/technologies/github-com-go-viper-mapstructure-v2), [Red Hat Advanced Cluster Security for Kubernetes](https://junglewise.ai/threats/technologies/advanced-cluster-security-for-kubernetes). Vendors: [Go](https://junglewise.ai/threats/vendors/go), [Red Hat](https://junglewise.ai/threats/vendors/red-hat).

## Quick answers

**Is CVE-2025-11065 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-11065 being exploited in the wild.

**How severe is CVE-2025-11065?** Medium severity, with a CVSS score of 5.3, published 26 January 2026.

**Which products and versions are affected?** github.com/go-viper/mapstructure (Go) SEMVER:introduced=0; github.com/go-viper/mapstructure/v2 (Go) SEMVER:introduced=0,fixed=2.4.0; Viper Mapstructure < 2.4.0.

**Is there a fix for CVE-2025-11065?** Yes. github.com/go-viper/mapstructure/v2 (Go): upgrade to 2.4.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2025-11065 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2025-11065?** Check whether you run github.com/go-viper/mapstructure (Go), github.com/go-viper/mapstructure/v2 (Go), Red Hat Advanced Cluster Security for Kubernetes or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/go-viper/mapstructure/v2 (Go): upgrade to 2.4.0 or later

  ```sh
  go get github.com/go-viper/mapstructure/v2@v2.4.0
  ```


## Technical details

A flaw was found in the github.com/go-viper/mapstructure/v2 library within the field processing component. When using mapstructure.WeakDecode, the library may generate detailed error messages that include the original input values when a type conversion fails (e.g., via strconv or time.ParseDuration). If the library is used to process sensitive fields in a security-critical context, an attacker can provide malformed data to trigger these errors, causing the sensitive values to be leaked into application logs or error responses. This is a regression or secondary path related to previous information disclosure fixes. The issue is resolved in version 2.4.0.

## Affected products

- go-viper mapstructure/v2 < 2.4.0
- Red Hat OpenShift Pipelines
- Red Hat Red Hat Advanced Cluster Management for Kubernetes 2
- Red Hat Red Hat Advanced Cluster Security 4

## Identifiers

- CVE-2025-11065
- GHSA-2464-8j7c-4cjm
- GO-2025-3900

## Timeline

- 2025-08-20: advisory: GitHub Security Advisory published
- 2025-08-29: other: Bugzilla record created
- 2026-01-26: disclosed: CVE published to NVD

## References

- [https://github.com/go-viper/mapstructure/](https://github.com/go-viper/mapstructure/)
- [https://access.redhat.com/downloads/content/package-browser/](https://access.redhat.com/downloads/content/package-browser/)
- [https://access.redhat.com/security/cve/CVE-2025-11065](https://access.redhat.com/security/cve/CVE-2025-11065)
- [https://bugzilla.redhat.com/show_bug.cgi?id=2391829](https://bugzilla.redhat.com/show_bug.cgi?id=2391829)
- [https://github.com/go-viper/mapstructure/commit/742921c9ba2854d27baa64272487fc5075d2c39c](https://github.com/go-viper/mapstructure/commit/742921c9ba2854d27baa64272487fc5075d2c39c)
- [https://github.com/go-viper/mapstructure/security/advisories/GHSA-2464-8j7c-4cjm](https://github.com/go-viper/mapstructure/security/advisories/GHSA-2464-8j7c-4cjm)

## Related threats

- [Red Hat Advanced Cluster Security for Kubernetes SAML replay attack](https://junglewise.ai/threats/cve-2026-103314-a-flaw-was-found-in-red-hat-advanced-cluster-security-for)
- [Red Hat Advanced Cluster Security privilege escalation in M2M auth](https://junglewise.ai/threats/cve-2026-19278-red-hat-advanced-cluster-security-privilege-escalation-in-m2m)
- [Red Hat Advanced Cluster Security policy bypass via label injection](https://junglewise.ai/threats/cve-2026-10079-red-hat-advanced-cluster-security-policy-bypass-via-label)
- [parallax jsPDF XSS in output function options](https://junglewise.ai/threats/cve-2026-31938-parallax-jspdf-xss-in-output-function-options)
- [parallax jsPDF PDF object injection in createAnnotation](https://junglewise.ai/threats/cve-2026-31898-parallax-jspdf-pdf-object-injection-in-createannotation)
