Code execution vulnerability in SWIG code generation in cmd/go
Summary
| CVE | CVE-2026-27140 |
|---|---|
| State | PUBLISHED |
| Assigner | Go |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-04-08 02:16:02 UTC |
| Updated | 2026-04-16 19:26:59 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 8.8 HIGH from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS: 0.000200000 probability, percentile 0.053290000 (date 2026-04-15)
Problem Types: CWE-863 | CWE-501: Trust Boundary Violation
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 8.8 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| 3.1 | ADP | DECLARED | 8.8 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| 3.1 | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | Secondary | 8.8 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
RequiredScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD Known Affected Configurations (CPE 2.3)
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Go Toolchain | Cmd/go | affected 1.25.9 semver | Not specified |
| CNA | Go Toolchain | Cmd/go | affected 1.26.0-0 1.26.2 semver | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| go.dev/cl/763768 | [email protected] | go.dev | Release Notes |
| pkg.go.dev/vuln/GO-2026-4871 | [email protected] | pkg.go.dev | Vendor Advisory |
| groups.google.com/g/golang-announce/c/0uYbvbPZRWU | [email protected] | groups.google.com | Release Notes, Mailing List |
| go.dev/issue/78335 | [email protected] | go.dev | Issue Tracking |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Juho Forsén of Mattermost (en)
There are currently no legacy QID mappings associated with this CVE.