CVE-2026-27140: Code execution vulnerability in SWIG code generation in cmd/go
Code execution vulnerability in SWIG code generation in cmd/go
Other sources
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.
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
alpine/goto a version that resolves this vulnerability.Fixed in 1.25.9-r0 - Upgrade
Upgrade
alpine/goto a version that resolves this vulnerability.Fixed in 1.26.2-r0 - Upgrade
Upgrade
alpine/rcloneto a version that resolves this vulnerability.Fixed in 1.73.5-r0
Event History
Frequently Asked Questions
What is the severity of CVE-2026-27140?
CVE-2026-27140 has a high severity level due to its potential for arbitrary code execution.
How do I fix CVE-2026-27140?
To fix CVE-2026-27140, update to Go versions 1.26.2 or later, or versions lower than 1.25.9.
What causes CVE-2026-27140?
CVE-2026-27140 is caused by code execution vulnerabilities in SWIG code generation within cmd/go.
Which software versions are affected by CVE-2026-27140?
CVE-2026-27140 affects Go cmd/go versions prior to 1.25.9 and between 1.26.0 and 1.26.2.
What are the potential impacts of CVE-2026-27140?
The potential impacts of CVE-2026-27140 include code smuggling and arbitrary code execution at build time.