CVEfocus › CVE database › CVE-2026-27140

CVE-2026-27140Code execution vulnerability in SWIG code generation in cmd/go

CVSS 8.8 HighEPSS 0.6% (higher than 52% of CVEs)Published 2026-04-08Updated 2026-09-10Assigner: 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.

CWE-641

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Go, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

43Fixed
31Fix pending
1Under investigation
3Will not fix
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04golang-1.23Fix pendingUBUNTU-CVE-2026-27140
Ubuntu 26.04golang-1.24Fix pendingUBUNTU-CVE-2026-27140
Ubuntu 26.04golang-1.25Not affected
vulnerable_code_not_present
Ubuntu 25.10golang-1.23Will not fix
Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list packages that need rebuilding outside of…
UBUNTU-CVE-2026-27140
Ubuntu 25.10golang-1.24Will not fix
Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list packages that need rebuilding outside of…
UBUNTU-CVE-2026-27140
Ubuntu 25.10golang-1.25Will not fix
Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list packages that need rebuilding outside of…
UBUNTU-CVE-2026-27140
Ubuntu 24.04golang-1.21Fix pendingUBUNTU-CVE-2026-27140
Ubuntu 24.04golang-1.22Fix pendingUBUNTU-CVE-2026-27140
Ubuntu 24.04golang-1.23Fix pendingUBUNTU-CVE-2026-27140
Ubuntu 24.04golang-1.24Fix pendingUBUNTU-CVE-2026-27140
Ubuntu 24.04golang-1.25Not affected
vulnerable_code_not_present
Ubuntu 22.04golang-1.13Fix pendingUBUNTU-CVE-2026-27140
Ubuntu 22.04golang-1.17Fix pendingUBUNTU-CVE-2026-27140
Ubuntu 22.04golang-1.18Fix pendingUBUNTU-CVE-2026-27140
Ubuntu 22.04golang-1.20Fix pendingUBUNTU-CVE-2026-27140
Ubuntu 22.04golang-1.21Fix pendingUBUNTU-CVE-2026-27140
Ubuntu 22.04golang-1.22Fix pendingUBUNTU-CVE-2026-27140
Ubuntu 22.04golang-1.23Fix pendingUBUNTU-CVE-2026-27140
Ubuntu 22.04golang-1.24Fix pendingUBUNTU-CVE-2026-27140
Ubuntu 22.04golang-1.25Under investigationUBUNTU-CVE-2026-27140
Ubuntu 20.04golang-1.13Fix pendingUBUNTU-CVE-2026-27140
Ubuntu 20.04golang-1.14Fix pendingUBUNTU-CVE-2026-27140
Ubuntu 20.04golang-1.16Fix pendingUBUNTU-CVE-2026-27140
Ubuntu 20.04golang-1.18Fix pendingUBUNTU-CVE-2026-27140
Ubuntu 20.04golang-1.20Fix pendingUBUNTU-CVE-2026-27140
Ubuntu 20.04golang-1.21Fix pendingUBUNTU-CVE-2026-27140
Ubuntu 20.04golang-1.22Fix pendingUBUNTU-CVE-2026-27140
Ubuntu 18.04golang-1.10Fix pendingUBUNTU-CVE-2026-27140
Ubuntu 18.04golang-1.13Fix pendingUBUNTU-CVE-2026-27140
Ubuntu 18.04golang-1.16Fix pendingUBUNTU-CVE-2026-27140
Ubuntu 18.04golang-1.18Fix pendingUBUNTU-CVE-2026-27140
Ubuntu 16.04golang-1.10Fix pendingUBUNTU-CVE-2026-27140
Ubuntu 16.04golang-1.13Fix pendingUBUNTU-CVE-2026-27140
Ubuntu 16.04golang-1.18Fix pendingUBUNTU-CVE-2026-27140
Ubuntu 14.04golang-1.10Fix pendingUBUNTU-CVE-2026-27140
Debian 14golang-1.26Fixed1.26.2-1DEBIAN-CVE-2026-27140
Debian 13golang-1.24Fix pendingDEBIAN-CVE-2026-27140
Debian 12golang-1.19Fix pendingDEBIAN-CVE-2026-27140
Red Hat Enterprise Linux 10go-toolsetFixed0:1.25.9-3.el10_1RHSA-2026:10217
Red Hat Enterprise Linux 10golangFixed0:1.25.9-3.el10_1RHSA-2026:10217
Red Hat Enterprise Linux 10golang-binFixed0:1.25.9-3.el10_1RHSA-2026:10217
Red Hat Enterprise Linux 10golang-docsFixed0:1.25.9-3.el10_1RHSA-2026:10217
Red Hat Enterprise Linux 10golang-miscFixed0:1.25.9-3.el10_1RHSA-2026:10217
Red Hat Enterprise Linux 10golang-raceFixed0:1.25.9-3.el10_1RHSA-2026:10217
Red Hat Enterprise Linux 10golang-srcFixed0:1.25.9-3.el10_1RHSA-2026:10217
Red Hat Enterprise Linux 10golang-testsFixed0:1.25.9-3.el10_1RHSA-2026:10217
Red Hat Enterprise Linux 9go-toolsetFixed0:1.25.9-1.el9_7RHSA-2026:10219
Red Hat Enterprise Linux 9golangFixed0:1.25.9-1.el9_7RHSA-2026:10219
Red Hat Enterprise Linux 9golang-binFixed0:1.25.9-1.el9_7RHSA-2026:10219
Red Hat Enterprise Linux 9golang-docsFixed0:1.25.9-1.el9_7RHSA-2026:10219
Red Hat Enterprise Linux 9golang-miscFixed0:1.25.9-1.el9_7RHSA-2026:10219
Red Hat Enterprise Linux 9golang-raceFixed0:1.25.9-1.el9_7RHSA-2026:10219
Red Hat Enterprise Linux 9golang-srcFixed0:1.25.9-1.el9_7RHSA-2026:10219
Red Hat Enterprise Linux 9golang-testsFixed0:1.25.9-1.el9_7RHSA-2026:10219
Red Hat Enterprise Linux 8delveFixed0:1.25.2-1.module+el8.10.0+23746+9db33b5eRHSA-2026:10704
Red Hat Enterprise Linux 8go-toolsetFixed
Affected
0:1.25.9-1.module+el8.10.0+24226+c418b32cRHSA-2026:10704
Red Hat Enterprise Linux 8golangFixed
Affected
0:1.25.9-1.module+el8.10.0+24226+c418b32cRHSA-2026:10704
Red Hat Enterprise Linux 8golang-binFixed
Affected
0:1.25.9-1.module+el8.10.0+24226+c418b32cRHSA-2026:10704
Red Hat Enterprise Linux 8golang-docsFixed
Affected
0:1.25.9-1.module+el8.10.0+24226+c418b32cRHSA-2026:10704
Red Hat Enterprise Linux 8golang-miscFixed
Affected
0:1.25.9-1.module+el8.10.0+24226+c418b32cRHSA-2026:10704
Red Hat Enterprise Linux 8golang-raceFixed
Affected
0:1.25.9-1.module+el8.10.0+24226+c418b32cRHSA-2026:10704
Red Hat Enterprise Linux 8golang-srcFixed
Affected
0:1.25.9-1.module+el8.10.0+24226+c418b32cRHSA-2026:10704
Red Hat Enterprise Linux 8golang-testsFixed
Affected
0:1.25.9-1.module+el8.10.0+24226+c418b32cRHSA-2026:10704
AlmaLinux 8delveFixed1.25.2-1.module_el8.10.0+4074+24330916ALSA-2026:10704
AlmaLinux 8go-toolsetFixed1.25.9-1.module_el8.10.0+4167+2e2e20ddALSA-2026:10704
AlmaLinux 8golangFixed1.25.9-1.module_el8.10.0+4167+2e2e20ddALSA-2026:10704
AlmaLinux 8golang-binFixed1.25.9-1.module_el8.10.0+4167+2e2e20ddALSA-2026:10704
AlmaLinux 8golang-docsFixed1.25.9-1.module_el8.10.0+4167+2e2e20ddALSA-2026:10704
AlmaLinux 8golang-miscFixed1.25.9-1.module_el8.10.0+4167+2e2e20ddALSA-2026:10704
AlmaLinux 8golang-raceFixed1.25.9-1.module_el8.10.0+4167+2e2e20ddALSA-2026:10704
AlmaLinux 8golang-srcFixed1.25.9-1.module_el8.10.0+4167+2e2e20ddALSA-2026:10704
AlmaLinux 8golang-testsFixed1.25.9-1.module_el8.10.0+4167+2e2e20ddALSA-2026:10704
Rocky Linux 10golangFixed0:1.25.9-3.el10_1RLSA-2026:10217
Rocky Linux 9golangFixed0:1.25.9-1.el9_7RLSA-2026:10219
Rocky Linux 8delveFixed0:1.25.2-1.module+el8.10.0+40035+ee0a7047RLSA-2026:10704
Rocky Linux 8golangFixed0:1.25.9-1.module+el8.10.0+40168+6cb0ea60RLSA-2026:10704
Alpine Linux 3.24goFixed1.26.2-r0ALPINE-CVE-2026-27140
Alpine Linux 3.24rcloneFixed1.73.5-r0ALPINE-CVE-2026-27140
Alpine Linux 3.23goFixed1.25.9-r0ALPINE-CVE-2026-27140
Go librarytoolchainFixed1.26.2GO-2026-4871

What the vendor says

As published in the CVE record by Go, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.