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

Medium 5.3 Published Updated

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

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

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

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.

PackageAffectedFixed in
github.com/go-viper/mapstructure/v2 GoAll versions2.4.0
github.com/go-viper/mapstructure/v2 GoAll versions2.4.0
github.com/go-viper/mapstructure/v2 GoAll versions2.4.0
github.com/go-viper/mapstructure GoAll versionsNone
Linux distribution packages (2)
grafana openSUSE:TumbleweedAll versions11.6.6-1.1
trivy openSUSE:TumbleweedAll versions0.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.

Sources

Also known as AZL-75351, AZL-75369, AZL-75372, AZL-75375, AZL-75389, AZL-75402 and 108 more.

Is CVE-2025-11065 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free