{"id":"CVE-2026-27140","published":"2026-04-08T01:06:57Z","modified":"2026-09-10T12:04:54Z","title":"Code execution vulnerability in SWIG code generation in cmd/go","vendor":"Go toolchain","product":"cmd/go","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00646,"percentile":0.51901,"provenance":"source"},"cwes":[{"id":"CWE-641","name":"Improper Restriction of Names for Files and Other Resources"}],"references":[{"url":"https://go.dev/cl/763768","tags":[]},{"url":"https://go.dev/issue/78335","tags":[]},{"url":"https://groups.google.com/g/golang-announce/c/0uYbvbPZRWU","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2026-4871","tags":[]},{"url":"https://access.redhat.com/security/cve/CVE-2026-27140","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2456341","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27140.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:16024","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:10217","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:10704","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:16698","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:16697","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:16694","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:16494","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:16498","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:16497","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:16021","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:10219","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:56854","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:34099","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:25182","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:23246","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:57408","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:57545","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":16.5,"factors":[{"name":"EPSS percentile","points":10.38},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"go-toolchain","affectedVersions":[{"vendor":"Go toolchain","product":"cmd/go","versions":["< 1.25.9",">= 1.26.0-0, < 1.26.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-04-09T03:55:58.901718Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"toolchain","vulnerableRanges":["<1.25.9",">=1.26.0-0, <1.26.2"],"patched":["1.25.9","1.26.2"],"from":["GO-2026-4871"],"provenance":"source"}],"summary":{"text":"The flaw is in the SWIG code generation handling of the Go toolchain's cmd/go component, where SWIG file names containing \"cgo\" can be crafted to bypass a trust check. An attacker who can get a malicious SWIG file into a build can smuggle code through this path and achieve arbitrary code execution at build time, which requires user interaction (such as a victim building the affected code) and no prior authentication.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:55:09Z"},"euvd":{"id":"EUVD-2026-20002","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-61731","published":"2026-01-28","fixed":"1.25.6","kev":false},{"cve":"CVE-2025-68119","published":"2026-01-28","fixed":"1.25.6","kev":false},{"cve":"CVE-2025-61732","published":"2026-02-05","fixed":"1.25.7","kev":false,"link":{"from":"CVE-2025-61732","to":"CVE-2026-27140","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:toolchain","fromFixed":"1.25.7","toFixed":"1.25.9","daysApart":62}]}},{"cve":"CVE-2026-27140","published":"2026-04-08","fixed":"1.26.2","kev":false},{"cve":"CVE-2026-27143","published":"2026-04-08","fixed":"1.26.2","kev":false},{"cve":"CVE-2026-27144","published":"2026-04-08","fixed":"1.26.2","kev":false},{"cve":"CVE-2026-39817","published":"2026-05-07","fixed":"1.26.3","kev":false,"link":{"from":"CVE-2026-27140","to":"CVE-2026-39817","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:toolchain","fromFixed":"1.25.9","toFixed":"1.25.10","daysApart":29}]}},{"cve":"CVE-2026-39819","published":"2026-05-07","fixed":"1.26.3","kev":false,"link":{"from":"CVE-2026-27140","to":"CVE-2026-39819","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:toolchain","fromFixed":"1.25.9","toFixed":"1.25.10","daysApart":29}]}},{"cve":"CVE-2026-42501","published":"2026-05-07","fixed":"1.26.3","kev":false,"link":{"from":"CVE-2026-27140","to":"CVE-2026-42501","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:toolchain","fromFixed":"1.25.9","toFixed":"1.25.10","daysApart":29}]}}],"package":"Go:toolchain"}}