Vulnerability in github.com/go-viper/mapstructure
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A weakness called CVE-2025-11065 was discovered in github.com/go-viper/mapstructure.
Severity is Medium (CVSS 5.3/10). Exploitation requires specific conditions but can cause real harm if successful.
What you should do: update the affected software to the latest version. If unsure, ask your IT team or search the vendor's site for "github.com/go-viper/mapstructure CVE-2025-11065".
CVE-2025-11065 (github.com/go-viper/mapstructure). Severity: Medium / CVSSv3 5.3. Category: CWE-209.
Response plan:
- Check the vendor advisory for affected versions and the patched release.
- If a vulnerable version is running in production, schedule maintenance (urgency from KEV/CVSS).
- If no patch yet, mitigate via WAF rule, disabling the affected feature, etc.
- Monitor logs / SIEM for known IOC and PoC signatures of this CVE.
PoCs and fix commits: see the 'References' section, MITRE, and NVD.
A weakness (CVE-2025-11065) in github.com/go-viper/mapstructure. A serious software flaw has been identified.
Target versions of github.com/go-viper/mapstructure (see vendor advisory). If running in production, identify exposure immediately.
Severity: Medium (CVSS 5.3/10). Exploitation requires specific conditions but can cause real harm if successful.
Update to the patched release as listed in the vendor advisory. (Typical mitigation pattern for CWE-209)
If a patch is not yet available, consider disabling the affected feature, applying WAF rules, blocking via network ACLs, or isolating the vulnerable version.
Check version information, scan dependencies via SBOM, and monitor SIEM for IOC and PoC signatures related to this CVE.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
Audit SBOM/dependencies for affected components.資産台帳・SBOM・依存マニフェストで影響コンポーネントを特定する。
-
2
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Gogithub.com/go-viper/mapstructure |
All versions→ Not listed |
Not listed |
| Gogithub.com/go-viper/mapstructure/v2 |
< 2.4.0→ 2.4.0 |
2.4.0 |
| GitHubgithub.com/go-viper/mapstructure/v2 |
< 2.4.0→ 2.4.0 |
2.4.0 |
| Red HatOpenShift Pipelines | — | Not listed |
| Red HatRed Hat Advanced Cluster Management for Kubernetes 2 | — | Not listed |
| Red HatRed Hat Advanced Cluster Security 4 | — | Not listed |
| Red HatRed Hat Certification for Red Hat Enterprise Linux 8 | — | Not listed |
| Red HatRed Hat Certification Program for Red Hat Enterprise Linux 9 | — | Not listed |
| Red HatRed Hat Enterprise Linux 10 | — | Not listed |
| Red HatRed Hat Enterprise Linux 9 | — | Not listed |
| Red HatRed Hat OpenShift AI (RHOAI) | — | Not listed |
| Red HatRed Hat OpenShift Container Platform 4 | — | Not listed |
| Red HatRed Hat OpenShift Dev Spaces | — | Not listed |
| Red HatRed Hat OpenShift distributed tracing 3 | — | Not listed |
| Red HatRed Hat OpenShift GitOps | — | Not listed |
| Red HatRed Hat Trusted Application Pipeline | — | Not listed |
| Red HatRed Hat Trusted Artifact Signer | — | Not listed |
| Red HatZero Trust Workload Identity Manager - Tech Preview | — | Not listed |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2025-11065 golang-github-go-viper-mapstructure Fix available
- Ubuntu UBUNTU-CVE-2025-11065 golang-github-go-viper-mapstructure No fixed version in this record
Original description The description as published by the source.
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.
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
References
- advisory access.redhat.com
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- report bugzilla.redhat.com
- web access.redhat.com
- web github.com