CVE-2026-42501
Last modified
CVE-2026-42501 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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). EPSS estimates a 0.23% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Golang | Go | < 1.25.10 |
| Golang | Go | >= 1.26.0, < 1.26.3 |
References
- https://go.dev/issue/79070Issue Tracking
- https://pkg.go.dev/vuln/GO-2026-4984Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-42501?
How severe is CVE-2026-42501?
How do I fix CVE-2026-42501?
How Strix Helps
- Same Subject, Wrong User: A Cross-Issuer Account Takeover in n8nStrix found an identity-binding bug in n8n's token-exchange flow enabling account takeover.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-42496Archive::Tar versions before 3.08 for Perl extract symlinks …9.1
- CVE-2026-42497Archive::Tar versions before 3.08 for Perl extract hardlinks…7.5
- CVE-2026-42498Exposure of HTTP Authentication Header to unexpected hosts d…7.3
- CVE-2026-42499Pathological inputs could cause DoS through consumePhrase wh…7.5
- CVE-2026-4250A vulnerability was found in Albert Sağlık Hizmetleri ve Tic…2.5
- CVE-2026-42500Decoding a paletted BMP file with an out-of-range palette in…5.3
- CVE-2026-42502Parsing arbitrary HTML which is then rendered using Render c…6.1
- CVE-2026-42503gopls by default communicates via pipe. However, -port and -…8.8
- CVE-2026-42504Decoding a maliciously-crafted MIME header containing many i…7.5
- CVE-2026-42505Handshakes which used Encrypted Client Hello could be de-ano…5.3
- CVE-2026-42506Parsing arbitrary HTML which is then rendered using Render c…6.1
- CVE-2026-42507When returning errors, functions in the net/textproto packag…5.3
Are you affected by CVE-2026-42501?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
