CVE-2026-42501Malicious module proxy can bypass checksum database in cmd/go
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.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Go, Red Hat, Rocky Linux: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | golang-1.23 | Under investigation | UBUNTU-CVE-2026-42501 | |
| Ubuntu 26.04 | golang-1.24 | Under investigation | UBUNTU-CVE-2026-42501 | |
| Ubuntu 26.04 | golang-1.25 | Under investigation | UBUNTU-CVE-2026-42501 | |
| Ubuntu 25.10 | golang-1.23 | Will not fix Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list packages that need rebuilding outside of… | UBUNTU-CVE-2026-42501 | |
| Ubuntu 25.10 | golang-1.24 | Will not fix Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list packages that need rebuilding outside of… | UBUNTU-CVE-2026-42501 | |
| Ubuntu 25.10 | golang-1.25 | Will not fix Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list packages that need rebuilding outside of… | UBUNTU-CVE-2026-42501 | |
| Ubuntu 24.04 | golang-1.21 | Under investigation | UBUNTU-CVE-2026-42501 | |
| Ubuntu 24.04 | golang-1.22 | Fix pending | UBUNTU-CVE-2026-42501 | |
| Ubuntu 24.04 | golang-1.23 | Under investigation | UBUNTU-CVE-2026-42501 | |
| Ubuntu 24.04 | golang-1.24 | Under investigation | UBUNTU-CVE-2026-42501 | |
| Ubuntu 24.04 | golang-1.25 | Under investigation | UBUNTU-CVE-2026-42501 | |
| Ubuntu 22.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2026-42501 | |
| Ubuntu 22.04 | golang-1.17 | Under investigation | UBUNTU-CVE-2026-42501 | |
| Ubuntu 22.04 | golang-1.18 | Under investigation | UBUNTU-CVE-2026-42501 | |
| Ubuntu 22.04 | golang-1.20 | Under investigation | UBUNTU-CVE-2026-42501 | |
| Ubuntu 22.04 | golang-1.21 | Under investigation | UBUNTU-CVE-2026-42501 | |
| Ubuntu 22.04 | golang-1.22 | Under investigation | UBUNTU-CVE-2026-42501 | |
| Ubuntu 22.04 | golang-1.23 | Under investigation | UBUNTU-CVE-2026-42501 | |
| Ubuntu 22.04 | golang-1.24 | Under investigation | UBUNTU-CVE-2026-42501 | |
| Ubuntu 22.04 | golang-1.25 | Under investigation | UBUNTU-CVE-2026-42501 | |
| Ubuntu 20.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2026-42501 | |
| Ubuntu 20.04 | golang-1.14 | Fix pending | UBUNTU-CVE-2026-42501 | |
| Ubuntu 20.04 | golang-1.16 | Fix pending | UBUNTU-CVE-2026-42501 | |
| Ubuntu 20.04 | golang-1.18 | Fix pending | UBUNTU-CVE-2026-42501 | |
| Ubuntu 20.04 | golang-1.20 | Fix pending | UBUNTU-CVE-2026-42501 | |
| Ubuntu 20.04 | golang-1.21 | Fix pending | UBUNTU-CVE-2026-42501 | |
| Ubuntu 20.04 | golang-1.22 | Fix pending | UBUNTU-CVE-2026-42501 | |
| Ubuntu 18.04 | golang-1.10 | Fix pending | UBUNTU-CVE-2026-42501 | |
| Ubuntu 18.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2026-42501 | |
| Ubuntu 18.04 | golang-1.16 | Fix pending | UBUNTU-CVE-2026-42501 | |
| Ubuntu 18.04 | golang-1.18 | Fix pending | UBUNTU-CVE-2026-42501 | |
| Ubuntu 18.04 | golang-1.8 | Fix pending | UBUNTU-CVE-2026-42501 | |
| Ubuntu 18.04 | golang-1.9 | Fix pending | UBUNTU-CVE-2026-42501 | |
| Ubuntu 16.04 | golang-1.10 | Fix pending | UBUNTU-CVE-2026-42501 | |
| Ubuntu 16.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2026-42501 | |
| Ubuntu 16.04 | golang-1.18 | Fix pending | UBUNTU-CVE-2026-42501 | |
| Ubuntu 16.04 | golang-1.6 | Fix pending | UBUNTU-CVE-2026-42501 | |
| Ubuntu 14.04 | golang-1.10 | Fix pending | UBUNTU-CVE-2026-42501 | |
| Debian 14 | golang-1.26 | Fixed | 1.26.3-1 | DEBIAN-CVE-2026-42501 |
| Debian 13 | golang-1.24 | Fix pending | DEBIAN-CVE-2026-42501 | |
| Debian 12 | golang-1.19 | Fix pending | DEBIAN-CVE-2026-42501 | |
| Red Hat Enterprise Linux 10 | go-toolset | Fixed | 0:1.26.3-4.el10_2 | RHSA-2026:22120 |
| Red Hat Enterprise Linux 10 | golang | Fixed | 0:1.26.3-4.el10_2 | RHSA-2026:22120 |
| Red Hat Enterprise Linux 10 | golang-bin | Fixed | 0:1.26.3-4.el10_2 | RHSA-2026:22120 |
| Red Hat Enterprise Linux 10 | golang-docs | Fixed | 0:1.26.3-4.el10_2 | RHSA-2026:22120 |
| Red Hat Enterprise Linux 10 | golang-misc | Fixed | 0:1.26.3-4.el10_2 | RHSA-2026:22120 |
| Red Hat Enterprise Linux 10 | golang-race | Fixed | 0:1.26.3-4.el10_2 | RHSA-2026:22120 |
| Red Hat Enterprise Linux 10 | golang-src | Fixed | 0:1.26.3-4.el10_2 | RHSA-2026:22120 |
| Red Hat Enterprise Linux 10 | golang-tests | Fixed | 0:1.26.3-4.el10_2 | RHSA-2026:22120 |
| Red Hat Enterprise Linux 9 | go-toolset | Fixed | 0:1.26.3-1.el9_8 | RHSA-2026:22121 |
| Red Hat Enterprise Linux 9 | golang | Fixed | 0:1.26.3-1.el9_8 | RHSA-2026:22121 |
| Red Hat Enterprise Linux 9 | golang-bin | Fixed | 0:1.26.3-1.el9_8 | RHSA-2026:22121 |
| Red Hat Enterprise Linux 9 | golang-docs | Fixed | 0:1.26.3-1.el9_8 | RHSA-2026:22121 |
| Red Hat Enterprise Linux 9 | golang-misc | Fixed | 0:1.26.3-1.el9_8 | RHSA-2026:22121 |
| Red Hat Enterprise Linux 9 | golang-race | Fixed | 0:1.26.3-1.el9_8 | RHSA-2026:22121 |
| Red Hat Enterprise Linux 9 | golang-src | Fixed | 0:1.26.3-1.el9_8 | RHSA-2026:22121 |
| Red Hat Enterprise Linux 9 | golang-tests | Fixed | 0:1.26.3-1.el9_8 | RHSA-2026:22121 |
| Red Hat Enterprise Linux 8 | delve | Fixed | 0:1.25.2-1.module+el8.10.0+23746+9db33b5e | RHSA-2026:22112 |
| Red Hat Enterprise Linux 8 | go-toolset | Fixed | 0:1.25.10-1.module+el8.10.0+24308+5c4a16b7 | RHSA-2026:22112 |
| Red Hat Enterprise Linux 8 | golang | Fixed | 0:1.25.10-1.module+el8.10.0+24308+5c4a16b7 | RHSA-2026:22112 |
| Red Hat Enterprise Linux 8 | golang-bin | Fixed | 0:1.25.10-1.module+el8.10.0+24308+5c4a16b7 | RHSA-2026:22112 |
| Red Hat Enterprise Linux 8 | golang-docs | Fixed | 0:1.25.10-1.module+el8.10.0+24308+5c4a16b7 | RHSA-2026:22112 |
| Red Hat Enterprise Linux 8 | golang-misc | Fixed | 0:1.25.10-1.module+el8.10.0+24308+5c4a16b7 | RHSA-2026:22112 |
| Red Hat Enterprise Linux 8 | golang-race | Fixed | 0:1.25.10-1.module+el8.10.0+24308+5c4a16b7 | RHSA-2026:22112 |
| Red Hat Enterprise Linux 8 | golang-src | Fixed | 0:1.25.10-1.module+el8.10.0+24308+5c4a16b7 | RHSA-2026:22112 |
| Red Hat Enterprise Linux 8 | golang-tests | Fixed | 0:1.25.10-1.module+el8.10.0+24308+5c4a16b7 | RHSA-2026:22112 |
| AlmaLinux 9 | go-toolset | Fixed | 1.26.3-1.el9_8 | ALSA-2026:22121 |
| AlmaLinux 9 | golang | Fixed | 1.26.3-1.el9_8 | ALSA-2026:22121 |
| AlmaLinux 9 | golang-bin | Fixed | 1.26.3-1.el9_8 | ALSA-2026:22121 |
| AlmaLinux 9 | golang-docs | Fixed | 1.26.3-1.el9_8 | ALSA-2026:22121 |
| AlmaLinux 9 | golang-misc | Fixed | 1.26.3-1.el9_8 | ALSA-2026:22121 |
| AlmaLinux 9 | golang-race | Fixed | 1.26.3-1.el9_8 | ALSA-2026:22121 |
| AlmaLinux 9 | golang-src | Fixed | 1.26.3-1.el9_8 | ALSA-2026:22121 |
| AlmaLinux 9 | golang-tests | Fixed | 1.26.3-1.el9_8 | ALSA-2026:22121 |
| AlmaLinux 8 | delve | Fixed | 1.25.2-1.module_el8.10.0+4074+24330916 | ALSA-2026:22112 |
| AlmaLinux 8 | go-toolset | Fixed | 1.25.10-1.module_el8.10.0+4187+c45165c4 | ALSA-2026:22112 |
| AlmaLinux 8 | golang | Fixed | 1.25.10-1.module_el8.10.0+4187+c45165c4 | ALSA-2026:22112 |
| AlmaLinux 8 | golang-bin | Fixed | 1.25.10-1.module_el8.10.0+4187+c45165c4 | ALSA-2026:22112 |
| AlmaLinux 8 | golang-docs | Fixed | 1.25.10-1.module_el8.10.0+4187+c45165c4 | ALSA-2026:22112 |
| AlmaLinux 8 | golang-misc | Fixed | 1.25.10-1.module_el8.10.0+4187+c45165c4 | ALSA-2026:22112 |
| AlmaLinux 8 | golang-race | Fixed | 1.25.10-1.module_el8.10.0+4187+c45165c4 | ALSA-2026:22112 |
| AlmaLinux 8 | golang-src | Fixed | 1.25.10-1.module_el8.10.0+4187+c45165c4 | ALSA-2026:22112 |
| AlmaLinux 8 | golang-tests | Fixed | 1.25.10-1.module_el8.10.0+4187+c45165c4 | ALSA-2026:22112 |
| Rocky Linux 10 | golang | Fixed | 0:1.26.3-4.el10_2 | RLSA-2026:22120 |
| Rocky Linux 9 | golang | Fixed | 0:1.26.3-1.el9_8 | RLSA-2026:22121 |
| Rocky Linux 8 | delve | Fixed | 0:1.25.2-1.module+el8.10.0+40035+ee0a7047 | RLSA-2026:22112 |
| Rocky Linux 8 | golang | Fixed | 0:1.25.10-1.module+el8.10.0+40200+0fd0f175 | RLSA-2026:22112 |
| Alpine Linux 3.24 | go | Fixed | 1.26.3-r0 | ALPINE-CVE-2026-42501 |
| Alpine Linux 3.24 | rclone | Fixed | 1.74.1-r0 | ALPINE-CVE-2026-42501 |
| Alpine Linux 3.23 | go | Fixed | 1.25.10-r0 | ALPINE-CVE-2026-42501 |
| Go library | toolchain | Fixed | 1.25.10 | GO-2026-4984 |
What the vendor says
As published in the CVE record by Go, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Go toolchain cmd/go: affected: before 1.25.10, 1.26.0-0 to before 1.26.3; fixed in
1.25.10,1.26.3
References
- https://go.dev/cl/775321
- https://go.dev/issue/79070
- https://groups.google.com/g/golang-announce/c/qcCIEXso47M
- https://pkg.go.dev/vuln/GO-2026-4984
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.