CVE-2026-42501
cmd/go: golang: Go command (cmd/go): Integrity bypass due to checksum validation flaw via malicious module proxy
Overview
Description
A malicious module proxy can exploit a flaw in the go command's validation of module checksums to bypass checksum database validation. This vulnerability affects any user using an untrusted module proxy (GOMODPROXY) or checksum database (GOSUMDB). A malicious module proxy can serve altered versions of the Go toolchain. When selecting a different version of the Go toolchain than the currently installed toolchain (due to the GOTOOLCHAIN environment variable, or a go.work or go.mod with a toolchain line), the go command will download and execute a toolchain provided by the module proxy. A malicious module proxy can bypass checksum database validation for this downloaded toolchain. Since this vulnerability affects the security of toolchain downloads, setting GOTOOLCHAIN to a fixed version is not sufficient. You must upgrade your base Go toolchain. The go tool always validates the hash of a toolchain before executing it, so fixed versions will refuse to execute any cached, altered versions of the toolchain. The go tool trusts go.sum files to contain accurate hashes of the current module's dependencies. A malicious proxy exploiting this vulnerability to serve an altered module will have caused an incorrect hash to be recorded in the go.sum. Users who have configured a non-trusted GOPROXY can determine if they have been affected by running "rm go.sum ; go mod tidy ; go mod verify", which will revalidate all dependencies of the current module. The specific flaw in more detail: The go command consults the checksum database to validate downloaded modules, when a module is not listed in the go.sum file. It verifies that the module hash reported by the checksum database matches the hash of the downloaded module. If, however, the checksum database returns a successful response that contains no entry for the module, the go command incorrectly permitted validation to succeed. A module proxy may mirror or proxy the checksum database, in which case the go command will not connect to the checksum database directly. Checksums reported by the checksum database are cryptographically signed, so a malicious proxy cannot alter the reported checksum for a module. However, a proxy which returns an empty checksum response, or a checksum response for an unrelated module, could cause the go command to proceed as if a downloaded module has been validated.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness: CWE-347
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | golang | <1.25.10>=1.26.0-0, <1.26.3 | 1.25.101.26.3 |
Open a package to see all its vulnerabilities.
Operating systems · 2,013 fixes
Oracle Linux 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | delve | 1.25.2-1.0.1.module+el8.10.0+90715+2d4d8dfd |
| 8 | go-toolset +7 | 1.25.9-1.0.1.module+el8.10.0+90898+1e3c34bb |
| 9 | go-toolset +7 | 1.26.3-1.0.1.el9_8 |
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 5.0 | go | 1.26.3-1.ph5 |
Red Hat 4 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | openshift4-ose-hypershift-rhel9 +1 | affected | — |
| 8 | openshift4-ose-hypershift-rhel9 +1 | affected | — |
| 8 (go-toolset:rhel8) | go-toolset +7 | 0:1.25.10-1.module+el8.10.0+24308+5c4a16b7 | RHSA-2026:22112 |
| 8 (go-toolset:rhel8) | delve | 0:1.25.2-1.module+el8.10.0+23746+9db33b5e | RHSA-2026:22112 |
| 9 | openshift4-ose-hypershift-rhel9 +1 | affected | — |
| 9 | go-toolset +7 | 0:1.26.3-1.el9_8 | RHSA-2026:22121 |
3 more rows
SUSE Linux Enterprise 5 releases · 4 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | go1-25-openssl +2 | 1.25.10-150000.1.24.1 | SUSE-SU-2026:2093-1 |
| 15.4 | go1-25 +2 | 1.25.10-150000.1.38.1 | SUSE-SU-2026:1862-1 |
| 15.4 | go1-26 +2 | 1.26.3-150000.1.12.1 | SUSE-SU-2026:1861-1 |
| 15.4 | go1-26-openssl +2 | 1.26.3-150000.1.9.1 | SUSE-SU-2026:2092-1 |
| 15.5 | go1-25-openssl +2 | 1.25.10-150000.1.24.1 | SUSE-SU-2026:2093-1 |
| 15.5 | go1-25 +2 | 1.25.10-150000.1.38.1 | SUSE-SU-2026:1862-1 |
14 more rows
alma 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (go-toolset:rhel8) | go-toolset +7 | 1.25.10-1.module_el8.10.0+4187+c45165c4 |
| 8 (go-toolset:rhel8) | delve | 1.25.2-1.module_el8.10.0+4074+24330916 |
| 9 | go-toolset +7 | 1.26.3-1.el9_8 |
alpine 3 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 3.23 | go | 1.25.10-r0 |
| 3.24 | go | 1.26.3-r0 |
| 3.24 | rclone | 1.74.1-r0 |
| edge | go | 1.26.3-r0 |
| edge | rclone | 1.74.1-r0 |
amazon linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 2023 | golang +6 | 1.25.10-1.amzn2023.0.1 |
chainguard 1 release · 1,293 packages
| Release | Package | Fixed in |
|---|---|---|
| datadog-agent-7-76 +8 | not affected | |
| hclgrep +1 | 0.0.0_git20240307-r0 | |
| hclmerge-fips | 0.0.0_git20250729-r0 | |
| hclmerge | 0.0.0_git20250729-r1 | |
| tflintenv | 0.0.0_git20251013-r0 | |
| tflintenv-fips | 0.0.0_git20251013-r1 |
1,287 more rows
debian 4 releases · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 11 | golang-1-15 | affected |
| 12 | golang-1-19 | affected |
| 13 | golang-1-24 | affected |
| 14 | golang-1-24 | affected |
| 14 | golang-1-26 | 1.26.3-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| golang-1-19 +1 | affected |
minimos 1 release · 429 packages
| Release | Package | Fixed in |
|---|---|---|
| pombump | 0.0.16-r8 | |
| tw | 0.0.47-r1 | |
| cargobump | 0.1.1-r4 | |
| aws-eks-pod-identity-agent +1 | 0.1.37-r1 | |
| gofumpt | 0.10.0-r1 | |
| dockerize | 0.11.0-r1 |
423 more rows
openSUSE 1 release · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | opa +3 | 1.16.2-1.1 | openSUSE-SU-2026:10755-1 |
| Tumbleweed | go1-25 +3 | 1.25.10-1.1 | openSUSE-SU-2026:10723-1 |
| Tumbleweed | go1-26 +3 | 1.26.3-1.1 | openSUSE-SU-2026:10741-1 |
openSUSE Leap 1 release · 4 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | go1-25 +3 | 1.25.10-160000.1.1 | openSUSE-SU-2026:20763-1 |
| 16.0 | go1-25-openssl +2 | 1.25.12-160000.1.1 | openSUSE-SU-2026:21319-1 |
| 16.0 | go1-26 +3 | 1.26.3-160000.1.1 | openSUSE-SU-2026:20762-1 |
| 16.0 | go1-26-openssl +2 | 1.26.4-160000.1.1 | openSUSE-SU-2026:21254-1 |
rocky 3 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | go-toolset +7 | 1.26.3-4.el10_2 |
| 8 (go-toolset:rhel8) | go-toolset +7 | 1.25.10-1.module+el8.10.0+40200+0fd0f175 |
| 8 (go-toolset:rhel8) | delve | 1.25.2-1.module+el8.10.0+40035+ee0a7047 |
| 9 | go-toolset +7 | 1.26.3-1.el9_8 |
root.io debian 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-golang-1-19 | affected |
| 13 | rootio-golang-1-24 | affected |
ubuntu 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 24.04 | golang-1-22 | affected |
wolfi 1 release · 229 packages
| Release | Package | Fixed in |
|---|---|---|
| knative-eventing-1-21 +2 | not affected | |
| tw | 0.0.47-r1 | |
| gke-gcloud-auth-plugin | 0.1.0-r17 | |
| cargobump | 0.1.1-r4 | |
| hey | 0.1.5-r6 | |
| step-issuer | 0.10.2-r10 |
223 more rows
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:22121
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-42501
- bugzilla.redhat.com https://bugzilla.redhat.com/2467822
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2467809
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2467810
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2467811
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2467813
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2467815
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2467820
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2467822
Show all 38 references
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2467823
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2467825
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2467826
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2467827
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-33811
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-33814
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-39817
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-39819
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-39820
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-39823
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-39825
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-39826
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-39836
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-42499
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-42501
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2026-22121.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2026:22121
- github.com https://github.com/golang/go/issues/79070
- go-review.googlesource.com https://go-review.googlesource.com/c/go/+/775321
- go.dev https://go.dev/cl/775321
- go.dev https://go.dev/issue/79070
- groups.google.com https://groups.google.com/g/golang-announce/c/qcCIEXso47M
- linux.oracle.com https://linux.oracle.com/cve/CVE-2026-42501.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2026-22121.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-42501
- pkg.go.dev https://pkg.go.dev/vuln/GO-2026-4984
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-42501
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.