CVE-2025-11065Github.com/go-viper/mapstructure/v2: go-viper's mapstructure may leak sensitive…
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.
What to do
Fixed builds are available from Debian, Go: see the table below for the fixed version per release.
Debian, Go, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | golang-github-go-viper-mapstructure | Fix pending | UBUNTU-CVE-2025-11065 | |
| Ubuntu 26.04 | golang-github-go-viper-mapstructure | Under investigation | UBUNTU-CVE-2025-11065 | |
| Ubuntu 25.10 | golang-github-go-viper-mapstructure | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-11065 | |
| Debian 14 | golang-github-go-viper-mapstructure | Fixed | 2.4.0-1 | DEBIAN-CVE-2025-11065 |
| Debian 13 | golang-github-go-viper-mapstructure | Fix pending | DEBIAN-CVE-2025-11065 | |
| Red Hat Enterprise Linux 10 | gvisor-tap-vsock | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | gvisor-tap-vsock-gvforwarder | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | opentelemetry-collector | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | toolbox | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | toolbox-tests | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | gvisor-tap-vsock | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | gvisor-tap-vsock-gvforwarder | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | opentelemetry-collector | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | toolbox | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | toolbox-tests | Fix pending Fix deferred | ||
| Go library | github.com/go-viper/mapstructure | Fix pending | GO-2025-3900 | |
| Go library | github.com/go-viper/mapstructure/v2 | Fixed | 2.4.0 | GO-2025-3900 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- github.com/go-viper/mapstructure/v2: affected: before 2.4.0; fixed in
2.4.0 - Red Hat OpenShift Pipelines
- Red Hat Advanced Cluster Management for Kubernetes 2
- Red Hat Advanced Cluster Security 4
- Red Hat Certification for Red Hat Enterprise Linux 8
- Red Hat Certification Program for Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 9
- Red Hat OpenShift AI (RHOAI)
- Red Hat OpenShift Container Platform 4
Workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
References
- https://access.redhat.com/security/cve/CVE-2025-11065
- https://bugzilla.redhat.com/show_bug.cgi?id=2391829
- https://github.com/go-viper/mapstructure/commit/742921c9ba2854d27baa64272487fc5075d2c39c
- https://github.com/go-viper/mapstructure/security/advisories/GHSA-2464-8j7c-4cjm
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.