# CVE-2025-11065: Github.com/go-viper/mapstructure/v2: go-viper's mapstructure may leak sensitive information in logs in github.com/go-viper/mapstructure

Status: published. Published: 2026-01-26. Updated: 2026-11-05.

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.

## Remediation

- 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. (source: CNA: redhat)
- fix: github.com/go-viper/mapstructure/v2 (Go): OSV reports a fixed version 2.4.0. Check the advisory for supported release branches. (source: OSV GHSA-2464-8j7c-4cjm) — https://github.com/advisories/GHSA-2464-8j7c-4cjm

## Affected products and versions

-  /  (github.com/go-viper/mapstructure/v2): ≥ 0; < 2.4.0 (affected, semver). Source: CNA: redhat
- Red Hat / OpenShift Pipelines (openshift-pipelines-client): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Advanced Cluster Management for Kubernetes 2 (rhacm2/acm-grafana-rhel9): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Advanced Cluster Management for Kubernetes 2 (rhacm2/submariner-rhel9-operator): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Advanced Cluster Security 4 (advanced-cluster-security/rhacs-central-db-rhel8): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Advanced Cluster Security 4 (advanced-cluster-security/rhacs-main-rhel8): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Advanced Cluster Security 4 (advanced-cluster-security/rhacs-rhel8-operator): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Advanced Cluster Security 4 (advanced-cluster-security/rhacs-roxctl-rhel8): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Advanced Cluster Security 4 (advanced-cluster-security/rhacs-scanner-v4-db-rhel8): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Advanced Cluster Security 4 (advanced-cluster-security/rhacs-scanner-v4-rhel8): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Certification for Red Hat Enterprise Linux 8 (redhat-certification-preflight): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Certification Program for Red Hat Enterprise Linux 9 (redhat-certification-preflight): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 10 (gvisor-tap-vsock): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 10 (opentelemetry-collector): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 10 (toolbox): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 9 (gvisor-tap-vsock): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 9 (opentelemetry-collector): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 9 (toolbox): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat OpenShift AI (RHOAI) (rhoai/odh-model-registry-rhel9): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat OpenShift AI (RHOAI) (rhoai/odh-rhel9-operator): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat OpenShift Container Platform 4 (microshift): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat OpenShift Container Platform 4 (openshift): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat OpenShift Container Platform 4 (openshift4/ose-helm-operator): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat OpenShift Container Platform 4 (openshift4/ose-helm-rhel9-operator): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat OpenShift Container Platform 4 (podman): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat OpenShift Dev Spaces (devspaces/traefik-rhel9): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat OpenShift Dev Spaces (devspaces/udi-base-rhel9): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat OpenShift Dev Spaces (devspaces/udi-rhel9): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat OpenShift distributed tracing 3 (rhosdt/opentelemetry-collector-rhel8): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat OpenShift GitOps (openshift-gitops-1/argocd-rhel8): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat OpenShift GitOps (openshift-gitops-1/argocd-rhel9): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Trusted Application Pipeline (rhtap-task-runner/rhtap-task-runner-rhel9): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Trusted Artifact Signer (rhtas/cosign-rhel9): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Trusted Artifact Signer (rhtas/fulcio-rhel9): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Trusted Artifact Signer (rhtas/gitsign-rhel9): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Trusted Artifact Signer (rhtas/rekor-backfill-redis-rhel9): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Trusted Artifact Signer (rhtas/rekor-cli-rhel9): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Trusted Artifact Signer (rhtas/rekor-server-rhel9): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Trusted Artifact Signer (rhtas/timestamp-authority-rhel9): Version range not reported. Source: CNA: redhat
- Red Hat / Zero Trust Workload Identity Manager - Tech Preview (zero-trust-workload-identity-manager/spiffe-spire-agent-rhel9): Version range not reported. Source: CNA: redhat
- Red Hat / Zero Trust Workload Identity Manager - Tech Preview (zero-trust-workload-identity-manager/spiffe-spire-oidc-discovery-provider-rhel9): Version range not reported. Source: CNA: redhat
- Red Hat / Zero Trust Workload Identity Manager - Tech Preview (zero-trust-workload-identity-manager/spiffe-spire-server-rhel9): Version range not reported. Source: CNA: redhat
- Red Hat / Zero Trust Workload Identity Manager - Tech Preview (zero-trust-workload-identity-manager/zero-trust-workload-identity-manager-rhel9): Version range not reported. Source: CNA: redhat
-  / github.com/go-viper/mapstructure/v2 (github.com/go-viper/mapstructure/v2): ≥ 0; < 2.4.0 (affected, semver); OSV events: introduced 0; fixed 2.4.0. Source: OSV GHSA-2464-8j7c-4cjm

## Severity and prioritization

- CVSS 3.1: 5.3 (medium); CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N; source: CNA: redhat

- CISA KEV: No listing in collected sources

- EPSS: 0.43% as of 2026-11-05; percentile 37.85%

- SSVC: exploitation poc; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-209

## Exploit evidence

- exploit: https://github.com/go-viper/mapstructure/security/advisories/GHSA-2464-8j7c-4cjm (ADP: CISA-ADP)

## References

- https://access.redhat.com/security/cve/CVE-2025-11065 (CNA: redhat; vdb-entry, x_refsource_REDHAT)

- https://bugzilla.redhat.com/show_bug.cgi?id=2391829 (CNA: redhat; issue-tracking, x_refsource_REDHAT)

- https://github.com/go-viper/mapstructure/commit/742921c9ba2854d27baa64272487fc5075d2c39c (CNA: redhat)

- https://github.com/go-viper/mapstructure/security/advisories/GHSA-2464-8j7c-4cjm (CNA: redhat)

- https://github.com/go-viper/mapstructure/security/advisories/GHSA-2464-8j7c-4cjm (ADP: CISA-ADP; exploit)

- https://github.com/advisories/GHSA-2464-8j7c-4cjm (OSV / GitHub Security Advisories; advisory)

- https://osv.dev/vulnerability/GHSA-2464-8j7c-4cjm (OSV / GitHub Security Advisories; osv)

## Provenance

- CNA: redhat: https://www.cve.org/CVERecord?id=CVE-2025-11065; retrieved 2026-11-05; source updated 2026-11-05

- OSV / GitHub Security Advisories: https://osv.dev/vulnerability/GHSA-2464-8j7c-4cjm; retrieved 2026-11-05; source updated 2026-09-10

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2025-11065; retrieved 2026-11-05; source updated Not reported

Revision: b117f89aeca16d3179004d449cc3bfa45ecb8e6e8aaee2d70bfbbf03125674a4

Canonical: https://y2.dev/cve/CVE-2025-11065

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.