GO-2026-4871
Dashboard / Vulnerabilities / GO-2026-4871
GO-2026-4871
Published: 7 Apr 2026Last Modified: 13 May 2026
Summary: 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.
References: https://go.dev/cl/763768, https://go.dev/issue/78335, https://groups.google.com/g/golang-announce/c/0uYbvbPZRWU
Affected packages
Package
Name: toolchain
Purl: pkg:golang/toolchain
Affected ranges
Type: SEMVER
Events:
Introduced- 0
Fixed -1.25.9
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
