---
id: CVE-2025-11065
title: >-
  A flaw was found in github.com/go-viper/mapstructure/v2, in the field
  processing component using mapstructure.WeakDecode
summary: >-
  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 valu…
severity: medium
cvss: 5.3
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N'
cwe:
  - CWE-209
published: '2026-01-26'
updated: '2026-06-25'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-11065'
references:
  - url: 'https://access.redhat.com/security/cve/CVE-2025-11065'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2391829'
    label: secalert@redhat.com
  - url: >-
      https://github.com/go-viper/mapstructure/commit/742921c9ba2854d27baa64272487fc5075d2c39c
    label: secalert@redhat.com
  - url: >-
      https://github.com/go-viper/mapstructure/security/advisories/GHSA-2464-8j7c-4cjm
    label: secalert@redhat.com
  - url: >-
      https://github.com/go-viper/mapstructure/security/advisories/GHSA-2464-8j7c-4cjm
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-11065'
  - url: 'https://github.com/go-viper/mapstructure'
  - url: 'https://pkg.go.dev/vuln/GO-2025-3900'
tags:
  - nvd
  - osv
  - go
epss: 0.00407
epssPercentile: 0.34781
ingestedAt: '2026-06-29T13:24:34.634Z'
aliases:
  - GHSA-2464-8j7c-4cjm
  - GO-2025-3900
ecosystem: go
vendor: go-viper
product: github.com/go-viper/mapstructure/v2
affected:
  - github.com/go-viper/mapstructure/v2 < 2.4.0
patched:
  - github.com/go-viper/mapstructure/v2 2.4.0
---

## Overview

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

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2025-11065)

Affected packages:

- `github.com/go-viper/mapstructure/v2 < 2.4.0`

Patched in:

- `github.com/go-viper/mapstructure/v2 2.4.0`

Source: https://osv.dev/vulnerability/GHSA-2464-8j7c-4cjm
