# CVE-2025-11065: go-viper's mapstructure May Leak Sensitive Information in Logs When Processing Malformed Data

> Attackers can leak sensitive input values via detailed error messages in the Go mapstructure library when processing malformed data.

- **Severity:** Medium 5.3 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 26 Jan 2026
- **Updated:** 29 Jun 2026
- **Also known as:** AZL-75351, AZL-75369, AZL-75372, AZL-75375, AZL-75389, AZL-75402, AZL-75407, AZL-75410, AZL-75413, AZL-75416, AZL-75419, AZL-75425, AZL-75428, AZL-75434, AZL-75440, AZL-75449, AZL-75452, AZL-75458, AZL-75473, AZL-75476, AZL-75479, AZL-75488, AZL-75491, AZL-75497, AZL-75500, AZL-75524, AZL-75527, AZL-75530, AZL-75545, AZL-75548, AZL-75551, AZL-75554, AZL-75557, AZL-75560, AZL-75564, AZL-75573, AZL-75576, AZL-75579, AZL-75582, AZL-81197, CLEANSTART-2026-FA93057, CLEANSTART-2026-FD99919, CLEANSTART-2026-GC90815, CLEANSTART-2026-MO09843, CLEANSTART-2026-NC69748, DEBIAN-CVE-2025-11065, GHSA-2464-8j7c-4cjm, GO-2025-3900, MINI-2vmc-8jjw-9qj4, MINI-392m-xq36-j4fr, MINI-3cff-hhqv-q8hq, MINI-3h9q-q9f7-p6qj, MINI-465p-v7mm-j9q9, MINI-4939-cgp2-4236, MINI-5fg3-8gxc-vq97, MINI-627v-hjch-25pr, MINI-64h6-mvqj-3p8w, MINI-6fx5-m9gw-5wgw, MINI-6gwh-fwvg-c73m, MINI-6hx6-9vqf-9cq7, MINI-6px9-4cgf-vgmr, MINI-6r5x-7qh8-75hm, MINI-6xxv-j95c-qxmf, MINI-73p7-73gm-m446, MINI-76hv-qh68-94xv, MINI-779r-3jgp-6p8f, MINI-78f5-mhqm-mh88, MINI-7pxp-38qq-3wh3, MINI-7rrc-q22r-24jj, MINI-7v3w-436q-2jq7, MINI-85c2-2qx2-m6wv, MINI-8876-qmhx-3886, MINI-8gjv-mq66-xfv9, MINI-8jrx-6m9h-wqhh, MINI-8m48-7jmc-3237, MINI-94g9-8vgp-hm4r, MINI-969q-q5gw-2jp7, MINI-9wgp-9f78-wh2q, MINI-c385-q4m9-6hf2, MINI-cggw-ffp4-g365, MINI-gff9-m658-67hh, MINI-gvhm-gpr8-9w4p, MINI-gvwx-c7g6-fxqj, MINI-gw8g-p7q7-8v33, MINI-hp6p-2p6p-g7fv, MINI-hx87-x7vf-j59g, MINI-j893-6jw5-7p6q, MINI-jc8p-mgcq-746h, MINI-jf37-wwhq-7hfx, MINI-m7xw-74qg-7mwh, MINI-p2j9-856r-gxwm, MINI-pfrw-hqg3-hvq2, MINI-pp8h-8cgx-5546, MINI-prp5-xf72-3vjc, MINI-pvq6-2pjv-4rgc, MINI-q482-872j-m7ww, MINI-q925-x3x7-qhv5, MINI-qw33-xx4p-4pmv, MINI-r3p9-4j42-c5c4, MINI-r984-3mqv-j4gx, MINI-rmqj-3mpj-26jr, MINI-v94q-xp73-8r22, MINI-vm6r-99vq-7p4r, MINI-vp37-8497-fp6f, MINI-w376-4fgm-v9fx, MINI-wc3m-pxwc-588g, MINI-wg38-q742-wf9h, MINI-whww-5x2g-3pc6, MINI-wxcq-5w8p-4m7m, MINI-xxjx-5m79-7q7h, MINI-xxx9-ff9v-3qc5, UBUNTU-CVE-2025-11065, openSUSE-SU-2025:15610-1, openSUSE-SU-2025:15724-1

## What is CVE-2025-11065?

CVE-2025-11065 is a medium-severity vulnerability in Red Hat OpenShift Pipelines, published on 26 Jan 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official description

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.

Weakness: CWE-209 (Generation of Error Message Containing Sensitive Information)

## Which versions are affected by CVE-2025-11065?

4 open source packages ship an affected version, including github.com/go-viper/mapstructure/v2 and github.com/go-viper/mapstructure.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/go-viper/mapstructure/v2` | Go | All versions | 2.4.0 |
| `github.com/go-viper/mapstructure/v2` | Go | All versions | 2.4.0 |
| `github.com/go-viper/mapstructure/v2` | Go | All versions | 2.4.0 |
| `github.com/go-viper/mapstructure` | Go | All versions | None |
| `grafana` | openSUSE:Tumbleweed | All versions | 11.6.6-1.1 |
| `trivy` | openSUSE:Tumbleweed | All versions | 0.67.2-1.1 |

## How do I fix CVE-2025-11065?

Upgrade github.com/go-viper/mapstructure/v2 to 2.4.0 or later.

## Is CVE-2025-11065 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-11065 exists.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-11065 and fix it if it is affected.

What it is: CVE-2025-11065 is a medium-severity vulnerability in Red Hat OpenShift Pipelines, published on 26 Jan 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-11065 exists.

Affected packages and fixed versions:
- github.com/go-viper/mapstructure/v2 (Go): affected all versions; fixed in 2.4.0
- github.com/go-viper/mapstructure/v2 (Go): affected all versions; fixed in 2.4.0
- github.com/go-viper/mapstructure/v2 (Go): affected all versions; fixed in 2.4.0
- github.com/go-viper/mapstructure (Go): affected all versions; no fix listed

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2025-11065/ (Markdown: https://insights.sbomify.com/CVE-2025-11065/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2025-11065
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-11065
- OSV: https://osv.dev/vulnerability/CVE-2025-11065

---
From sbomify Insights: https://insights.sbomify.com/CVE-2025-11065/
Summaries are generated and may contain mistakes; the official description above is the record.
