CVE-2026-27140

published 8 Apr 2026 · updated 25 Sep 2026

Code execution vulnerability in SWIG code generation in cmd/go

8.8HighCVSS 8.8EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 1.25.9 and 1.26.2.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Go toolchain<1.25.9, >=1.26.0-0 <1.26.21.25.9, 1.26.2

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-27140 severity on Zeptric[![CVE-2026-27140](https://zeptric.io/badge/cve/CVE-2026-27140.svg)](https://zeptric.io/cve/CVE-2026-27140)