CVE-2026-27140Improper Restriction of Names for Files and Other Resources in Toolchain CMD GO

Severity
8.8HIGHNVD
EPSS
0.0%
top 94.66%
CISA KEV
Not in KEV
Exploit
No known exploits
Affected products
Timeline
PublishedApr 8
Latest updateApr 9

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.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExploitability: 2.8 | Impact: 5.9

Affected Packages1 packages

CVEListV5go_toolchain/cmd_go1.26.0-01.26.2+1

🔴Vulnerability Details

4
OSV
CVE-2026-27140: SWIG file names containing 'cgo' and well-crafted payloads could lead to code smuggling and arbitrary code execution at build time due to trust layer2026-04-08
GHSA
GHSA-5w89-2c2x-6x66: SWIG file names containing 'cgo' and well-crafted payloads could lead to code smuggling and arbitrary code execution at build time due to trust layer2026-04-08
CVEList
Code execution vulnerability in SWIG code generation in cmd/go2026-04-08
OSV
Code execution vulnerability in SWIG code generation in cmd/go2026-04-07

📋Vendor Advisories

2
Red Hat
cmd/go: golang: Go (golang) and cmd/go: Arbitrary Code Execution via malicious SWIG file names2026-04-08
Debian
CVE-2026-27140: golang-1.15 - SWIG file names containing 'cgo' and well-crafted payloads could lead to code sm...2026

🕵️Threat Intelligence

1
Wiz
CVE-2026-27140 Impact, Exploitability, and Mitigation Steps | Wiz

💬Community

4
Bugzilla
CVE-2026-27140 golang: Go (golang) and cmd/go: Arbitrary Code Execution via malicious SWIG file names [fedora-all]2026-04-09
Bugzilla
CVE-2026-27140 gcc-epel: Go (golang) and cmd/go: Arbitrary Code Execution via malicious SWIG file names [epel-all]2026-04-09
Bugzilla
CVE-2026-27140 golang: Go (golang) and cmd/go: Arbitrary Code Execution via malicious SWIG file names [fedora-43]2026-04-09
Bugzilla
CVE-2026-27140 cmd/go: golang: Go (golang) and cmd/go: Arbitrary Code Execution via malicious SWIG file names2026-04-08
CVE-2026-27140 — GO Toolchain CMD GO vulnerability | cvebase