Code execution vulnerability in SWIG code generation in cmd/go
CVE-2026-27140Published 8 Apr 2026, 01:06 UTC
Real-world risk
6.0/ 10Medium
Schedule in the normal cycle
PreliminaryFrom the CVSS vector only · confidence low
CVSS
8.8
scored by CISA, CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from Go)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| cmd/goNiche | < 1.25.9; >= 1.26.0-0, < 1.26.2 | 1.25.9, 1.26.2 |
What to do
Update to a fixed version: 1.25.9, 1.26.2.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Full compromiseCode execution or full control of the system or application | From the CVSS vector | 1.00 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.7% chance of exploitation in 30 days (percentile 55), as of 2026-12-05.
The arithmetic
- Prerequisites multiplied together0.700
- Threat T1: Nothing known0.850
- 10 × impact 1 × prerequisites 0.7 × threat 0.855.950
- Rounded to one decimal between 0.1 and 106.0
Exploitation and evidence timeline
- 8 Apr 2026 Published
- 3 Dec 2026 Risk 6.0 (cvss fallback)
Weakness
CWE-501
References
- https://go.dev/cl/763768
- https://go.dev/issue/78335
- https://groups.google.com/g/golang-announce/c/0uYbvbPZRWU
- https://pkg.go.dev/vuln/GO-2026-4871
- https://access.redhat.com/security/cve/CVE-2026-27140redhat, vdb-entry
- https://bugzilla.redhat.com/show_bug.cgi?id=2456341issue-tracking, redhat
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27140.jsonx-sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:16024redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:10217redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:10704redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:16698redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:16697redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:16694redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:16494redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:16498redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:16497redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:16021redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:10219redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:56854redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:34099redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:25182redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:23246redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:57408redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:57545redhat, vendor-advisory
- CVE-2026-27140 on CVE.org