Go toolchain cmd/go
Fix transparency log tile verification bypass in golang.org/x/mod/sumdb/tlog
A malicious GOPROXY was previously capable of forging up to two sumdb tiles that allow for a requested module to bypass the GOSUMDB check and persist attacker-controlled module content to a local Go module cache. This attack allows for a malicious GOPROXY to serve malicious module content that cannot be detected by evaluating the transparency log. All tiles are now correctly verified against their parents. In order to determine if you have been affected: rm -r go.sum go.work.sum vendor/ && go mod tidy
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.25.13
- >= 1.26.0-0, < 1.26.6
- >= 1.27.0-0, < 1.27.0-rc.3
Fixed in 1.25.13, 1.26.6, 1.27.0-rc.3
- < 0.40.0
Fixed in 0.40.0
Mitigation
Upgrade cmd/go to 1.25.13 or 1.26.6 or 1.27.0-rc.3 or later.
Upgrade golang.org/x/mod/sumdb/tlog to 0.40.0 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.