CVE-2026-27140: Code execution vulnerability in SWIG code generation in cmd/go

Published Apr 8, 2026
·
Updated

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

29 affected componentsFixes available
go cmd/go
Golang Go<1.25.9
Golang Go>=1.26.0<1.26.2
alpine/go>=1.26.0<1.25.9-r0
1.25.9-r0
alpine/go>=1.26.0<1.26.2-r0
1.26.2-r0
alpine/rclone<1.73.5-r0
1.73.5-r0
ubuntu/golang-1.10*
ubuntu/golang-1.10*
ubuntu/golang-1.13*
ubuntu/golang-1.18*
ubuntu/golang-1.10*
ubuntu/golang-1.13*
ubuntu/golang-1.16*
ubuntu/golang-1.18*
ubuntu/golang-1.13*
ubuntu/golang-1.16*
ubuntu/golang-1.18*
ubuntu/golang-1.22*
ubuntu/golang-1.17*
ubuntu/golang-1.22*
ubuntu/golang-1.24*
ubuntu/golang-1.13*
ubuntu/golang-1.21*
ubuntu/golang-1.22*
ubuntu/golang-1.24*
ubuntu/golang-1.23*
ubuntu/golang-1.24*
ubuntu/golang-1.23*
ubuntu/golang-1.24*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade alpine/go to a version that resolves this vulnerability.

    Fixed in 1.25.9-r0
  2. Upgrade

    Upgrade alpine/go to a version that resolves this vulnerability.

    Fixed in 1.26.2-r0
  3. Upgrade

    Upgrade alpine/rclone to a version that resolves this vulnerability.

    Fixed in 1.73.5-r0

Event History

Apr 8, 2026
CVE Published
via MITRE·01:06 AM
Data Sourced
via MITRE·01:06 AM
DescriptionWeakness
Data Sourced
via Red Hat·02:01 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·02:16 AM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·02:16 AM
DescriptionSeverityAffected Software
Apr 11, 2026
Data Sourced
via Microsoft·08:10 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2026-27140?

CVE-2026-27140 has a high severity level due to its potential for arbitrary code execution.

2

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.

3

What causes CVE-2026-27140?

CVE-2026-27140 is caused by code execution vulnerabilities in SWIG code generation within cmd/go.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203