{"schema_version":"1.3.1","id":"GO-2026-4871","modified":"2026-04-07T22:53:49Z","published":"2026-04-07T22:53:49Z","aliases":["CVE-2026-27140"],"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.","affected":[{"package":{"name":"toolchain","ecosystem":"Go"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.25.9"},{"introduced":"1.26.0-0"},{"fixed":"1.26.2"}]}],"ecosystem_specific":{"imports":[{"path":"cmd/go"}]}}],"references":[{"type":"FIX","url":"https://go.dev/cl/763768"},{"type":"REPORT","url":"https://go.dev/issue/78335"},{"type":"WEB","url":"https://groups.google.com/g/golang-announce/c/0uYbvbPZRWU"}],"credits":[{"name":"Juho Forsén of Mattermost"}],"database_specific":{"url":"https://pkg.go.dev/vuln/GO-2026-4871","review_status":"REVIEWED"}}