{"id":"GO-2026-4871","revision":"6548e1776b4645f6909c171f8e382282","records":[{"revision":"6548e1776b4645f6909c171f8e382282","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2026-4871","aliases":["BIT-golang-2026-27140","CVE-2026-27140"],"title":"Code execution vulnerability in SWIG code generation in cmd/go","description":"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.","state":0,"publishedAt":"2026-04-07T22:53:49+00:00","modifiedAt":"2026-05-13T10:44:29.0043838+00:00","affected":[{"ecosystem":"Go","name":"toolchain","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.25.9"},{"kind":"introduced","version":"1.26.0-0"},{"kind":"fixed","version":"1.26.2"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://go.dev/cl/763768","https://go.dev/issue/78335","https://groups.google.com/g/golang-announce/c/0uYbvbPZRWU"],"sourceUrl":"https://osv.dev/vulnerability/GO-2026-4871","license":"OSV · upstream source license applies","key":"osv:GO-2026-4871","identifiers":["GO-2026-4871","BIT-golang-2026-27140","CVE-2026-27140"]},"retained":false,"historicalAffected":[]}],"coverage":[]}