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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | github.com/go-viper/mapstructure/v2 | < 2.4.0 | 2.4.0 |
| Red Hat | OpenShift Pipelines | — | — |
| Red Hat | Red Hat Advanced Cluster Management for Kubernetes 2 | — | — |
| Red Hat | Red Hat Advanced Cluster Security 4 | — | — |
| Red Hat | Red Hat Certification for Red Hat Enterprise Linux 8 | — | — |
| Red Hat | Red Hat Certification Program for Red Hat Enterprise Linux 9 | — | — |
| Red Hat | Red Hat Enterprise Linux 10 | — | — |
| Red Hat | Red Hat Enterprise Linux 9 | — | — |
| Red Hat | Red Hat OpenShift AI (RHOAI) | — | — |
| Red Hat | Red Hat OpenShift Container Platform 4 | — | — |
| Red Hat | Red Hat OpenShift Dev Spaces | — | — |
| Red Hat | Red Hat OpenShift distributed tracing 3 | — | — |
| Red Hat | Red Hat OpenShift GitOps | — | — |
| Red Hat | Red Hat Trusted Application Pipeline | — | — |
| Red Hat | Red Hat Trusted Artifact Signer | — | — |
| Red Hat | Zero Trust Workload Identity Manager - Tech Preview | — | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | golang-github-go-viper-mapstructure | 2.4.0-1 | — |
| Debian 13 | golang-github-go-viper-mapstructure | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | golang-github-go-viper-mapstructure | No fix yet | — |
| Ubuntu 26.04 LTS | golang-github-go-viper-mapstructure | No fix yet | — |
| Ubuntu 25.10 | golang-github-go-viper-mapstructure | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | alloy | 1.11.3-150700.15.9.1 | SUSE-SU-2025:4121-1 |
| SLES 15 SP7 | cosign | 3.0.5-150400.3.35.1 | SUSE-SU-2026:0777-1 |
| SLES 15 SP7 | grafana | 11.5.10-150200.3.80.1 | SUSE-SU-2025:4482-1 |
| SLES 15 SP6 | grafana | 11.5.10-150200.3.80.1 | SUSE-SU-2025:4482-1 |
Show 10 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 16.0 | alloy | 1.11.3-160000.1.1 | SUSE-SU-2025:21137-1 |
| SLES for SAP 16.0 | cosign | 3.0.5-160000.1.1 | SUSE-SU-2026:20904-1 |
| SLES 16.0 | alloy | 1.11.3-160000.1.1 | SUSE-SU-2025:21137-1 |
| SLES 16.0 | cosign | 3.0.5-160000.1.1 | SUSE-SU-2026:20904-1 |
| SUSE Multi Linux Manager Tools SLE-Micro-5 | uyuni-tools | 5.1.23-150002.3.6.1 | SUSE-SU-2025:4446-1 |
| SUSE Multi Linux Manager Tools SLE-15 | grafana | 11.5.10-150002.4.6.1 | SUSE-SU-2025:4446-1 |
| SUSE Multi Linux Manager Tools SLE-15 | uyuni-tools | 5.1.23-150002.3.6.1 | SUSE-SU-2025:4446-1 |
| SUSE Multi Linux Manager Tools SLE-12 | Multi-Linux-ManagerTools-SLE-release | 12-120002.1.11.1 | SUSE-SU-2025:4444-1 |
| SUSE Multi Linux Manager Tools SLE-12 | grafana | 11.5.10-120002.4.6.1 | SUSE-SU-2025:4444-1 |
| SUSE Multi Linux Manager Tools SLE-12 | uyuni-tools | 5.1.23-120002.3.6.1 | SUSE-SU-2025:4444-1 |
| SUSE Manager Server LTS 4.3 | release-notes-susemanager | 4.3.16.2-150400.3.148.1 | SUSE-SU-2025:4479-1 |
| SUSE Manager Proxy LTS 4.3 | release-notes-susemanager-proxy | 4.3.16.2-150400.3.104.2 | SUSE-SU-2025:4479-1 |
| SUSE Manager Client Tools for SLE Micro 5 | dracut-saltboot | 1.0.0-150000.1.62.1 | SUSE-SU-2025:4458-1 |
| SUSE Manager Client Tools for SLE Micro 5 | uyuni-tools | 0.1.37-150000.1.27.1 | SUSE-SU-2025:4458-1 |
| SUSE Manager Client Tools 15 | dracut-saltboot | 1.0.0-150000.1.62.1 | SUSE-SU-2025:4458-1 |
| SUSE Manager Client Tools 15 | grafana | 11.5.10-150000.1.87.1 | SUSE-SU-2025:4458-1 |
| SUSE Manager Client Tools 15 | mgr-push | 5.0.3-150000.1.30.1 | SUSE-SU-2025:4458-1 |
| SUSE Manager Client Tools 15 | rhnlib | 5.0.6-150000.3.49.1 | SUSE-SU-2025:4458-1 |
| SUSE Manager Client Tools 15 | spacecmd | 5.0.14-150000.3.139.1 | SUSE-SU-2025:4458-1 |
| SUSE Manager Client Tools 15 | supportutils-plugin-susemanager-client | 5.0.5-150000.3.30.1 | SUSE-SU-2025:4458-1 |
| SUSE Manager Client Tools 15 | uyuni-tools | 0.1.37-150000.1.27.1 | SUSE-SU-2025:4458-1 |
| SUSE Manager Client Tools 12 | golang-github-prometheus-alertmanager | 0.28.1-1.34.1 | SUSE-SU-2025:4457-1 |
| SUSE Manager Client Tools 12 | grafana | 11.5.10-1.87.1 | SUSE-SU-2025:4457-1 |
| SUSE Manager Client Tools 12 | mgr-push | 5.0.3-1.30.3 | SUSE-SU-2025:4457-1 |
| SUSE Manager Client Tools 12 | rhnlib | 5.0.6-21.55.1 | SUSE-SU-2025:4457-1 |
| SUSE Manager Client Tools 12 | spacecmd | 5.0.14-38.162.1 | SUSE-SU-2025:4457-1 |
| SUSE Manager Client Tools 12 | supportutils-plugin-susemanager-client | 5.0.5-6.36.1 | SUSE-SU-2025:4457-1 |
| SUSE Manager Client Tools 12 | uyuni-tools | 0.1.37-1.27.1 | SUSE-SU-2025:4457-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | alloy | 1.11.2-2.1 | openSUSE-SU-2025:15631-1 |
| openSUSE Tumbleweed | cosign | 3.0.4-2.1 | openSUSE-SU-2026:10232-1 |
| openSUSE Tumbleweed | grafana | 11.6.6-1.1 | openSUSE-SU-2025:15610-1 |
| openSUSE Tumbleweed | trivy | 0.67.2-1.1 | openSUSE-SU-2025:15724-1 |
| openSUSE Leap 16.0 | alloy | 1.11.3-160000.1.1 | openSUSE-SU-2025:20073-1 |
| openSUSE Leap 16.0 | cosign | 3.0.5-160000.1.1 | openSUSE-SU-2026:20386-1 |
| openSUSE Leap 15.6 | cosign | 3.0.5-150400.3.35.1 | SUSE-SU-2026:0777-1 |
| openSUSE Leap 15.6 | dracut-saltboot | 1.0.0-150000.1.62.1 | SUSE-SU-2025:4458-1 |
| openSUSE Leap 15.6 | grafana | 11.5.10-150200.3.80.1 | SUSE-SU-2025:4482-1 |
| openSUSE Leap 15.6 | spacecmd | 5.0.14-150000.3.139.1 | SUSE-SU-2025:4458-1 |
| openSUSE Leap 15.6 | supportutils-plugin-susemanager-client | 5.0.5-150000.3.30.1 | SUSE-SU-2025:4458-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | amazon-cloudwatch-agent | 1.300059.1-1.amzn2023 | ALAS2023-2025-1224 |
| Amazon Linux 2023 | nerdctl | 2.1.5-1.amzn2023.0.1 | ALAS2023-2025-1259 |
| Amazon Linux 2 | amazon-cloudwatch-agent | 1.300059.1-1.amzn2 | ALAS2-2025-3037 |
| Amazon Linux 2 | nerdctl | 2.1.5-1.amzn2.0.1 | ALAS2-2025-3060 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | cert-manager | 1.12.15-6 | — |
| Azure Linux 3 | coredns | 1.11.4-14 | — |
| Azure Linux 3 | cri-o +4 | No fix yet | — |
| Azure Linux 3 | docker-buildx | 0.14.0-10 | — |
| Azure Linux 3 | docker-cli | 25.0.7-2 | — |
| Azure Linux 3 | docker-compose | 2.27.0-8 | — |
| Azure Linux 3 | gh | 2.62.0-13 | — |
| Azure Linux 3 | influxdb | 2.7.5-13 | — |
| Azure Linux 3 | kata-containers | 3.19.1.kata2-6 | — |
| Azure Linux 3 | keda | 2.14.1-11 | — |
| Azure Linux 3 | kubevirt | 1.7.0-3 | — |
| Azure Linux 3 | kured | 1.15.0-3 | — |
| Azure Linux 3 | opa | 0.63.0-3 | — |
| Azure Linux 3 | packer | 1.9.5-13 | — |
| Azure Linux 3 | skopeo | 1.14.4-8 | — |
| Azure Linux 3 | telegraf | 1.31.0-15 | — |
| Azure Linux 3 | vitess | 19.0.4-9 | — |
| Azure Linux 2 (CBL-Mariner) | cert-manager | 1.11.2-27 | — |
| Azure Linux 2 (CBL-Mariner) | cri-o | 1.22.3-20 | — |
| Azure Linux 2 (CBL-Mariner) | influxdb | 2.6.1-30 | — |
| Azure Linux 2 (CBL-Mariner) | keda | 2.4.0-32 | — |
| Azure Linux 2 (CBL-Mariner) | kube-vip-cloud-provider | 0.0.2-26 | — |
| Azure Linux 2 (CBL-Mariner) | kubevirt | 0.59.0-38 | — |
| Azure Linux 2 (CBL-Mariner) | kured | 1.14.2-7 | — |
| Azure Linux 2 (CBL-Mariner) | moby-buildx | 0.7.1-28 | — |
| Azure Linux 2 (CBL-Mariner) | moby-cli | 24.0.9-8 | — |
| Azure Linux 2 (CBL-Mariner) | moby-compose | 2.17.3-14 | — |
| Azure Linux 2 (CBL-Mariner) | opa | 0.63.0-6 | — |
| Azure Linux 2 (CBL-Mariner) | packer | 1.9.5-18 | — |
| Azure Linux 2 (CBL-Mariner) | prometheus | 2.37.9-7 | — |
| Azure Linux 2 (CBL-Mariner) | rook +2 | No fix yet | — |
| Azure Linux 2 (CBL-Mariner) | skopeo | 1.14.2-14 | — |
| Azure Linux 2 (CBL-Mariner) | telegraf | 1.29.4-21 | — |
| Azure Linux 2 (CBL-Mariner) | terraform | 1.3.2-29 | — |
| Azure Linux 2 (CBL-Mariner) | vitess | 17.0.7-14 | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | bank-vaults +1 | 1.32.0-r1 | — |
| Wolfi rolling | jitsucom-bulker | 2.11.0-r2 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/go-viper/mapstructure | all versions | — | GO-2025-3900 |
| Go | github.com/go-viper/mapstructure/v2 | < 2.4.0 | 2.4.0 | GHSA-2464-8j7c-4cjm |
Advisories 20
- SUSE-SU-2026:20904-1 Security update for cosign SUSE / openSUSE Security Updates · Apr 2, 2026
- openSUSE-SU-2026:20386-1 Security update for cosign SUSE / openSUSE Security Updates · Mar 26, 2026
- openSUSE-SU-2026:10232-1 cosign-3.0.4-2.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2025:20073-1 Security update for alloy SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2025:15724-1 trivy-0.67.2-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2025:15631-1 alloy-1.11.2-2.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2025:15610-1 grafana-11.6.6-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:4457-1 Security update 5.0.6 for Multi-Linux Manager Client Tools SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:4444-1 Security update 5.1.1.1 for Multi-Linux Manager Client Tools SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:4482-1 Security update for grafana SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:4446-1 Security update 5.1.1.1 for Multi-Linux Manager Client Tools SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:4458-1 Security update 5.0.6 for Multi-Linux Manager Client Tools SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:21137-1 Security update for alloy SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:4121-1 Security update for alloy SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:4479-1 Security update 4.3.16.2 for Multi-Linux Manager Server LTS SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2026:0777-1 Security update for cosign SUSE / openSUSE Security Updates · Mar 4, 2026
- ALAS2-2025-3060 Moderate: nerdctl security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Nov 10, 2025
- ALAS2023-2025-1259 Moderate: nerdctl security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Nov 10, 2025
- ALAS2-2025-3037 Moderate: amazon-cloudwatch-agent security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Oct 14, 2025
- ALAS2023-2025-1224 Moderate: amazon-cloudwatch-agent security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Oct 14, 2025