Go Vulnerability Database
GO-2026-4871
Code execution vulnerability in SWIG code generation in cmd/go
Details
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
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | toolchain | All versions before 1.25.9 (fixed in 1.25.9) From 1.26.0-0 before 1.26.2 (fixed in 1.26.2) |