Vulnerability Report: GO-2026-4871
- CVE-2026-27140
- Affects: cmd/go
- Published: Apr 07, 2026
SWIG file names containing 'cgo' and well-crafted payloads could lead to code smuggling and arbitrary code execution at build time due to trust layer bypass.
Affected Packages
-
PathVersionsSymbols
-
before go1.25.9, from go1.26.0-0 before go1.26.2all symbols
Aliases
References
- https://go.dev/cl/763768
- https://go.dev/issue/78335
- https://groups.google.com/g/golang-announce/c/0uYbvbPZRWU
- https://vuln.go.dev/ID/GO-2026-4871.json
Credits
- Juho Forsén of Mattermost
Feedback
See anything missing or incorrect?
Suggest an edit to this report.