Vulnerability · Published Apr 8, 2026 · Assigned by Go
CVE-2026-27140Code execution vulnerability in SWIG code generation in cmd/go
High 8.8
In plain English
A high-severity security flaw in cmd/go from Go toolchain. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 52% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)8.8High
Exploit odds (30 days)0.7%top 47.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | delve | 1.25.2-1.module_el8.10.0+4074+24330916 | ALSA-2026:10704 |
| AlmaLinux:8 | go-toolset | 1.25.9-1.module_el8.10.0+4167+2e2e20dd | ALSA-2026:10704 |
| AlmaLinux:8 | golang | 1.25.9-1.module_el8.10.0+4167+2e2e20dd | ALSA-2026:10704 |
| AlmaLinux:8 | golang-bin | 1.25.9-1.module_el8.10.0+4167+2e2e20dd | ALSA-2026:10704 |
| AlmaLinux:8 | golang-docs | 1.25.9-1.module_el8.10.0+4167+2e2e20dd | ALSA-2026:10704 |
| AlmaLinux:8 | golang-misc | 1.25.9-1.module_el8.10.0+4167+2e2e20dd | ALSA-2026:10704 |
| AlmaLinux:8 | golang-race | 1.25.9-1.module_el8.10.0+4167+2e2e20dd | ALSA-2026:10704 |
| AlmaLinux:8 | golang-src | 1.25.9-1.module_el8.10.0+4167+2e2e20dd | ALSA-2026:10704 |
| AlmaLinux:8 | golang-tests | 1.25.9-1.module_el8.10.0+4167+2e2e20dd | ALSA-2026:10704 |
| Alpine:v3.23 | go | 1.25.9-r0 | ALPINE-CVE-2026-27140 |
| Alpine:v3.24 | go | 1.26.2-r0 | ALPINE-CVE-2026-27140 |
| Alpine:v3.24 | rclone | 1.73.5-r0 | ALPINE-CVE-2026-27140 |
| Debian:12 | golang-1.19 | no fix listed | DEBIAN-CVE-2026-27140 |
| Debian:13 | golang-1.24 | no fix listed | DEBIAN-CVE-2026-27140 |
| Debian:14 | golang-1.26 | 1.26.2-1 | DEBIAN-CVE-2026-27140 |
| Go | toolchain | 1.25.9, 1.26.2 | GO-2026-4871 |
| Rocky Linux:8 | delve | 0:1.25.2-1.module+el8.10.0+40035+ee0a7047 | RLSA-2026:10704 |
| Rocky Linux:10 | golang | 0:1.25.9-3.el10_1 | RLSA-2026:10217 |
| Rocky Linux:8 | golang | 0:1.25.9-1.module+el8.10.0+40168+6cb0ea60 | RLSA-2026:10704 |
| Rocky Linux:9 | golang | 0:1.25.9-1.el9_7 | RLSA-2026:10219 |
| Ubuntu:22.04:LTS | golang-1.17 | no fix listed | UBUNTU-CVE-2026-27140 |
| Ubuntu:22.04:LTS | golang-1.18 | no fix listed | UBUNTU-CVE-2026-27140 |
| Ubuntu:22.04:LTS | golang-1.20 | no fix listed | UBUNTU-CVE-2026-27140 |
| Ubuntu:22.04:LTS | golang-1.21 | no fix listed | UBUNTU-CVE-2026-27140 |
| Ubuntu:24.04:LTS | golang-1.21 | no fix listed | UBUNTU-CVE-2026-27140 |
| Ubuntu:22.04:LTS | golang-1.22 | no fix listed | UBUNTU-CVE-2026-27140 |
| Ubuntu:24.04:LTS | golang-1.22 | no fix listed | UBUNTU-CVE-2026-27140 |
| Ubuntu:22.04:LTS | golang-1.23 | no fix listed | UBUNTU-CVE-2026-27140 |
| Ubuntu:24.04:LTS | golang-1.23 | no fix listed | UBUNTU-CVE-2026-27140 |
| Ubuntu:25.10 | golang-1.23 | no fix listed | UBUNTU-CVE-2026-27140 |
| Ubuntu:26.04:LTS | golang-1.23 | no fix listed | UBUNTU-CVE-2026-27140 |
| Ubuntu:22.04:LTS | golang-1.24 | no fix listed | UBUNTU-CVE-2026-27140 |
| Ubuntu:24.04:LTS | golang-1.24 | no fix listed | UBUNTU-CVE-2026-27140 |
| Ubuntu:25.10 | golang-1.24 | no fix listed | UBUNTU-CVE-2026-27140 |
| Ubuntu:26.04:LTS | golang-1.24 | no fix listed | UBUNTU-CVE-2026-27140 |
| Ubuntu:22.04:LTS | golang-1.25 | no fix listed | UBUNTU-CVE-2026-27140 |
| Ubuntu:24.04:LTS | golang-1.25 | no fix listed | UBUNTU-CVE-2026-27140 |
| Ubuntu:25.10 | golang-1.25 | no fix listed | UBUNTU-CVE-2026-27140 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Go toolchain | cmd/go | 0 – before 1.25.91.26.0-0 – before 1.26.2 |
Weakness: CWE-641 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
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-27140 vdb-entry, x_refsource_REDHAT
- RHBZ#2456341 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27140.json x_sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:16024 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:10217 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:10704 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:16698 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:16697 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:16694 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:16494 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:16498 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:16497 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:16021 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:10219 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:56854 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:34099 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:25182 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:23246 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:57408 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:57545 vendor-advisory, x_refsource_REDHAT