CVE-2026-27140

Code execution vulnerability in SWIG code generation in cmd/go

State
Published
Severity
8.8 High
Published
Apr 8, 2026
Updated
Sep 10, 2026
Reserved
Feb 17, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.18.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HCISA-ADP
3.19.0 CriticalCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:Hredhat-SADP

Weaknesses

  • CWE-641 Improper Restriction of Names for Files and Other Resources

Affected Products

ProductVersions
cmd/goGo toolchain
  • before 1.25.9Affected
  • 1.26.0-0 to before 1.26.2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.