Skip to content
Fencer Vulns
critical 9.0

CVE-2026-27140 json

Code execution vulnerability in SWIG code generation in cmd/go

published 2026-04-07 7 mo ago modified 2026-09-10 59 d ago also BIT-golang-2026-27140 , EUVD-2026-20002 , GO-2026-4871

cvss
9.0
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.7%
EPSS 0.7% chance of exploitation in 30 days, percentile 52%
public exploits
0
none known

Summary

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.

Patch / fix

  • bitnami golang 1.25.9, 1.26.2
  • go toolchain 1.25.9, 1.26.2
  • Go toolchain cmd/go 1.25.9, 1.26.2
  • Red Hat Red Hat Enterprise Linux 10 0:1.25.9-3.el10_1
  • Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support 0:1.25.9-1.el10_0
  • Red Hat Red Hat Enterprise Linux 8 8100020260422204008.a3795dee
  • Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support 8040020260505161557.5081a262
  • Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On 8040020260505161557.5081a262
  • Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support 8060020260505152018.97d7f71f
  • Red Hat Red Hat Enterprise Linux 8.6 Telecommunications Update Service 8060020260505152018.97d7f71f
  • Red Hat Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions 8060020260505152018.97d7f71f
  • Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service 8080020260506150958.6b4b45d8
  • Red Hat Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions 8080020260506150958.6b4b45d8
  • Red Hat Red Hat Enterprise Linux 9 0:1.25.9-1.el9_7
  • Red Hat Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions 0:1.17.13-12.el9_0
  • Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions 0:1.19.13-25.el9_2
  • Red Hat Red Hat Enterprise Linux 9.4 Extended Update Support 0:1.21.13-16.el9_4
  • Red Hat Red Hat Enterprise Linux 9.6 Extended Update Support 0:1.25.9-1.el9_6
  • Red Hat Red Hat OpenShift Container Platform 4.16 1786788012
  • Red Hat Red Hat OpenShift Container Platform 4.17 1782184924
  • Red Hat Red Hat OpenShift Container Platform 4.18 1780978272
  • Red Hat Red Hat OpenShift Container Platform 4.19 1779779751, 1780040098, 1780040126, 1780040410, 1780041224, 1780041462, 1780041614, 1780041886, 1780042119, 1780043484, 1780043779, 1780043827, 1780043978, 1780044334, 1780044383, 1780044576, 1780044702, 1780044940, 1780462567, 1780465170
  • Red Hat Red Hat OpenShift Container Platform 4.20 1787059394
  • golang-1.26 Debian 14 1.26.2-1

debian advisories DEBIAN-CVE-2026-27140

  • delve RHEL 8 1.25.2-1.module+el8.10.0+23746+9db33b5e
  • golang RHEL 8 1.25.9-1.module+el8.10.0+24226+c418b32c
  • go-toolset RHEL 8 1.25.9-1.module+el8.10.0+24226+c418b32c
  • golang-bin RHEL 8 1.25.9-1.module+el8.10.0+24226+c418b32c
  • golang-src RHEL 8 1.25.9-1.module+el8.10.0+24226+c418b32c
  • golang-misc RHEL 8 1.25.9-1.module+el8.10.0+24226+c418b32c
  • golang-race RHEL 8 1.25.9-1.module+el8.10.0+24226+c418b32c
  • golang-tests RHEL 8 1.25.9-1.module+el8.10.0+24226+c418b32c

red hat advisories RHSA-2026:16698RHSA-2026:16697RHSA-2026:16694RHSA-2026:16497RHSA-2026:16498RHSA-2026:16494

  • go1.25-openssl SLES for SAP applications 16.0, SLES 16.0 1.25.12-160000.1.1
  • go1.26-openssl SLES for SAP applications 16.0, SLES 16.0 1.26.4-160000.1.1
  • go1.25-openssl SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +5 more 1.25.9-150000.1.21.1
  • go1.26-openssl SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +5 more 1.26.2-150000.1.6.1
  • go1.25 SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +8 more 1.25.9-150000.1.35.1
  • go1.26 SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +8 more 1.26.2-150000.1.9.1

suse advisories SUSE-SU-2026:22638-1SUSE-SU-2026:22572-1SUSE-SU-2026:1581-1SUSE-SU-2026:1580-1SUSE-SU-2026:1321-1SUSE-SU-2026:1320-1

  • govulncheck-vulndb openSUSE Leap 16.0 0.0.20260723T184607-160000.1.1
  • go1.25-openssl openSUSE Leap 16.0 1.25.12-160000.1.1
  • go1.26-openssl openSUSE Leap 16.0 1.26.4-160000.1.1
  • coredns openSUSE Tumbleweed 1.14.3-1.1
  • go1.26 openSUSE Leap 16.0 1.26.2-160000.1.1
  • go1.25 openSUSE Leap 16.0 1.25.9-160000.1.1
  • go1.26 openSUSE Tumbleweed 1.26.2-1.1
  • go1.25 openSUSE Tumbleweed 1.25.9-1.1

opensuse advisories openSUSE-SU-2026:21483-1openSUSE-SU-2026:21319-1openSUSE-SU-2026:21254-1openSUSE-SU-2026:10673-1openSUSE-SU-2026:20571-1openSUSE-SU-2026:20570-1

  • delve AlmaLinux 8 1.25.2-1.module_el8.10.0+4074+24330916
  • golang AlmaLinux 8 1.25.9-1.module_el8.10.0+4167+2e2e20dd
  • go-toolset AlmaLinux 8 1.25.9-1.module_el8.10.0+4167+2e2e20dd
  • golang-bin AlmaLinux 8 1.25.9-1.module_el8.10.0+4167+2e2e20dd
  • golang-src AlmaLinux 8 1.25.9-1.module_el8.10.0+4167+2e2e20dd
  • golang-misc AlmaLinux 8 1.25.9-1.module_el8.10.0+4167+2e2e20dd
  • golang-race AlmaLinux 8 1.25.9-1.module_el8.10.0+4167+2e2e20dd
  • golang-tests AlmaLinux 8 1.25.9-1.module_el8.10.0+4167+2e2e20dd

almalinux advisories ALSA-2026:10704

  • golang Rocky Linux 10 1.25.9-3.el10_1
  • golang Rocky Linux 9 1.25.9-1.el9_7
  • delve Rocky Linux 8 1.25.2-1.module+el8.10.0+40035+ee0a7047
  • golang Rocky Linux 8 1.25.9-1.module+el8.10.0+40168+6cb0ea60

rocky linux advisories RLSA-2026:10217RLSA-2026:10219RLSA-2026:10704

  • go Alpine 3.23 1.25.9-r0
  • go Alpine 3.24 1.26.2-r0
  • rclone Alpine 3.24 1.73.5-r0

alpine advisories ALPINE-CVE-2026-27140

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-27140 updated cvss 9.0

cmd/go: golang: Go (golang) and cmd/go: Arbitrary Code Execution via malicious SWIG file names

  • Red Hat Enterprise Linux 8 golang, go-toolset, golang-bin, golang-src, golang-misc, golang-race, +1 more Red Hat OpenShift Container Platform 4 ossm-2/openshift-golang-builder-container Red Hat OpenShift Virtualization 4 openshift4/ose-docker-builder-rhel9
    affected: no fix available
  • Red Hat OpenShift Service Mesh 2 ossm-2/openshift-golang-builder-container Red Hat OpenShift Service Mesh 3 ossm-2/openshift-golang-builder-container Red Hat OpenShift Virtualization 4 ossm-2/openshift-golang-builder-container
    under investigation
  • Red Hat Enterprise Linux AppStream (v. 8) delve 1.25.2-1.module+el8.10.0+23746+9db33b5e, golang 1.25.9-1.module+el8.10.0+24226+c418b32c, go-toolset 1.25.9-1.module+el8.10.0+24226+c418b32c, golang-bin 1.25.9-1.module+el8.10.0+24226+c418b32c, golang-src 1.25.9-1.module+el8.10.0+24226+c418b32c, golang-misc 1.25.9-1.module+el8.10.0+24226+c418b32c, +2 more
    fixed: vendor fix RHSA-2026:10704
  • Red Hat Enterprise Linux AppStream (v. 9) golang 1.25.9-1.el9_7, go-toolset 1.25.9-1.el9_7, golang-bin 1.25.9-1.el9_7, golang-src 1.25.9-1.el9_7, golang-misc 1.25.9-1.el9_7, golang-race 1.25.9-1.el9_7, +1 more
    fixed: vendor fix RHSA-2026:10219
  • Red Hat Enterprise Linux AppStream (v. 10) golang 1.25.9-3.el10_1, go-toolset 1.25.9-3.el10_1, golang-bin 1.25.9-3.el10_1, golang-src 1.25.9-3.el10_1, golang-misc 1.25.9-3.el10_1, golang-race 1.25.9-3.el10_1, +1 more
    fixed: vendor fix RHSA-2026:10217
  • Red Hat Enterprise Linux AppStream AUS (v.8.4) delve 1.5.0-2.module+el8.4.0+8864+58b0fcdb, golang 1.15.14-22.module+el8.4.0+24267+d2faeddf, go-toolset 1.15.14-3.module+el8.4.0+22765+91da4d3f, golang-bin 1.15.14-22.module+el8.4.0+24267+d2faeddf, golang-src 1.15.14-22.module+el8.4.0+24267+d2faeddf, golang-misc 1.15.14-22.module+el8.4.0+24267+d2faeddf, +2 more
    fixed: vendor fix RHSA-2026:16698
  • Red Hat Enterprise Linux AppStream AUS (v.8.6) delve 1.7.2-1.module+el8.6.0+12972+ebab5911, golang 1.17.13-16.module+el8.6.0+24266+ace38400, go-toolset 1.17.13-2.module+el8.6.0+22782+bd95fb4c, golang-bin 1.17.13-16.module+el8.6.0+24266+ace38400, golang-src 1.17.13-16.module+el8.6.0+24266+ace38400, golang-misc 1.17.13-16.module+el8.6.0+24266+ace38400, +2 more Red Hat Enterprise Linux AppStream E4S (v.8.6) delve 1.7.2-1.module+el8.6.0+12972+ebab5911, golang 1.17.13-16.module+el8.6.0+24266+ace38400, go-toolset 1.17.13-2.module+el8.6.0+22782+bd95fb4c, golang-bin 1.17.13-16.module+el8.6.0+24266+ace38400, golang-src 1.17.13-16.module+el8.6.0+24266+ace38400, golang-misc 1.17.13-16.module+el8.6.0+24266+ace38400, +2 more
    fixed: vendor fix RHSA-2026:16697
  • Red Hat Enterprise Linux AppStream E4S (v.8.8) delve 1.9.1-1.module+el8.8.0+16778+5fbb74f5, golang 1.19.13-24.module+el8.8.0+24268+9f9e0e19, go-toolset 1.19.13-4.module+el8.8.0+23976+18ba1869, golang-bin 1.19.13-24.module+el8.8.0+24268+9f9e0e19, golang-src 1.19.13-24.module+el8.8.0+24268+9f9e0e19, golang-misc 1.19.13-24.module+el8.8.0+24268+9f9e0e19, +2 more
    fixed: vendor fix RHSA-2026:16694
show 14 more
  • Red Hat Enterprise Linux AppStream E4S (v.9.0) golang 1.17.13-12.el9_0, golang-bin 1.17.13-12.el9_0, golang-src 1.17.13-12.el9_0, golang-misc 1.17.13-12.el9_0, golang-race 1.17.13-12.el9_0, golang-tests 1.17.13-12.el9_0
    fixed: vendor fix RHSA-2026:16494
  • Red Hat Enterprise Linux AppStream E4S (v.9.2) golang 1.19.13-25.el9_2, golang-bin 1.19.13-25.el9_2, golang-src 1.19.13-25.el9_2, golang-misc 1.19.13-25.el9_2, golang-race 1.19.13-25.el9_2, golang-tests 1.19.13-25.el9_2
    fixed: vendor fix RHSA-2026:16498
  • Red Hat Enterprise Linux AppStream EUS (v. 10.0) golang 1.25.9-1.el10_0, go-toolset 1.25.9-1.el10_0, golang-bin 1.25.9-1.el10_0, golang-src 1.25.9-1.el10_0, golang-misc 1.25.9-1.el10_0, golang-race 1.25.9-1.el10_0, +1 more
    fixed: vendor fix RHSA-2026:16024
  • Red Hat Enterprise Linux AppStream EUS (v.9.4) golang 1.21.13-16.el9_4, go-toolset 1.21.13-16.el9_4, golang-bin 1.21.13-16.el9_4, golang-src 1.21.13-16.el9_4, golang-misc 1.21.13-16.el9_4, golang-tests 1.21.13-16.el9_4
    fixed: vendor fix RHSA-2026:16497
  • Red Hat Enterprise Linux AppStream EUS (v.9.6) golang 1.25.9-1.el9_6, go-toolset 1.25.9-1.el9_6, golang-bin 1.25.9-1.el9_6, golang-src 1.25.9-1.el9_6, golang-misc 1.25.9-1.el9_6, golang-race 1.25.9-1.el9_6, +1 more
    fixed: vendor fix RHSA-2026:16021
  • Red Hat Enterprise Linux AppStream EUS EXTENSION (v.8.4) delve 1.5.0-2.module+el8.4.0+8864+58b0fcdb, golang 1.15.14-22.module+el8.4.0+24267+d2faeddf, go-toolset 1.15.14-3.module+el8.4.0+22765+91da4d3f, golang-bin 1.15.14-22.module+el8.4.0+24267+d2faeddf, golang-src 1.15.14-22.module+el8.4.0+24267+d2faeddf, golang-misc 1.15.14-22.module+el8.4.0+24267+d2faeddf, +2 more
    fixed: vendor fix RHSA-2026:16698
  • Red Hat Enterprise Linux AppStream TUS (v.8.6) delve 1.7.2-1.module+el8.6.0+12972+ebab5911, golang 1.17.13-16.module+el8.6.0+24266+ace38400, go-toolset 1.17.13-2.module+el8.6.0+22782+bd95fb4c, golang-bin 1.17.13-16.module+el8.6.0+24266+ace38400, golang-src 1.17.13-16.module+el8.6.0+24266+ace38400, golang-misc 1.17.13-16.module+el8.6.0+24266+ace38400, +2 more
    fixed: vendor fix RHSA-2026:16697
  • Red Hat Enterprise Linux AppStream TUS (v.8.8) delve 1.9.1-1.module+el8.8.0+16778+5fbb74f5, golang 1.19.13-24.module+el8.8.0+24268+9f9e0e19, go-toolset 1.19.13-4.module+el8.8.0+23976+18ba1869, golang-bin 1.19.13-24.module+el8.8.0+24268+9f9e0e19, golang-src 1.19.13-24.module+el8.8.0+24268+9f9e0e19, golang-misc 1.19.13-24.module+el8.8.0+24268+9f9e0e19, +2 more
    fixed: vendor fix RHSA-2026:16694
  • Red Hat OpenShift Container Platform 4.16 openshift4/ose-docker-builder-rhel9 1786788012
    fixed: vendor fix RHSA-2026:56854
  • Red Hat OpenShift Container Platform 4.17 openshift4/ose-docker-builder-rhel9 1782184924
    fixed: vendor fix RHSA-2026:34099
  • Red Hat OpenShift Container Platform 4.18 openshift4/ose-docker-builder-rhel9 1780978272
    fixed: vendor fix RHSA-2026:25182
  • Red Hat OpenShift Container Platform 4.19 openshift4/frr-rhel9 1780041886, openshift4/ose-cli-rhel9 1780454976, openshift4/ose-pod-rhel9 1780040715, openshift4/ose-etcd-rhel9 1780060002, openshift4/ose-tests-rhel9 1780466471, openshift4/ose-tools-rhel9 1780462550, +174 more
    fixed: vendor fix RHSA-2026:23246
  • Red Hat OpenShift Container Platform 4.20 openshift4/ose-docker-builder-rhel9 1787059394
    fixed: vendor fix RHSA-2026:57545
  • Red Hat OpenShift Service Mesh 2 openshift-service-mesh/pilot-rhel8, openshift4/ose-docker-builder-rhel9, openshift-service-mesh/proxyv2-rhel9, openshift-service-mesh/istio-cni-rhel8, openshift-service-mesh/ratelimit-rhel8, openshift-service-mesh/istio-rhel8-operator Red Hat OpenShift Service Mesh 3 openshift4/ose-docker-builder-rhel9, openshift-service-mesh/istio-cni-rhel9, openshift-service-mesh/istio-pilot-rhel9, openshift-service-mesh/istio-proxyv2-rhel9, openshift-service-mesh/istio-rhel9-operator Red Hat Hardened Images golang1.25, golang1.26 Red Hat OpenShift Container Platform 4.16 openshift4/ose-cli-rhel9 1786785721, openshift4/ose-pod-rhel9 1786788191, openshift4/ose-sdn-rhel9 1786788280, openshift4/ose-etcd-rhel9 1786787038, openshift4/ose-tools-rhel9 1786784972, openshift4/ose-ironic-rhel9 1787053253, +183 more Red Hat OpenShift Container Platform 4.17 openshift4/frr-rhel9 1782184905, openshift4/ose-cli-rhel9 1782186366, openshift4/ose-pod-rhel9 1782186811, openshift4/ose-etcd-rhel9 1782185530, openshift4/ose-tests-rhel9 1782191912, openshift4/ose-tools-rhel9 1782185868, +182 more Red Hat OpenShift Container Platform 4.18 openshift4/frr-rhel9 1780977570, openshift4/ose-cli-rhel9 1780980237, openshift4/ose-pod-rhel9 1780982716, openshift4/ose-etcd-rhel9 1780983250, openshift4/ose-tests-rhel9 1781088680, openshift4/ose-tools-rhel9 1781087154, +182 more
    +2 more products
    Red Hat OpenShift Container Platform 4.19 openshift4/frr-rhel9 1786760573, openshift4/ose-cli-rhel9 1787046152, openshift4/ose-pod-rhel9 1786802866, openshift4/ose-etcd-rhel9 1786767009, openshift4/ose-tests-rhel9 1787106695, openshift4/ose-tools-rhel9 1787105251, +192 more Red Hat OpenShift Container Platform 4.20 openshift4/frr-rhel9 1787059366, openshift4/ose-cli-rhel9 1787018980, openshift4/ose-pod-rhel9 1787020295, openshift4/ose-etcd-rhel9 1787020061, openshift4/ose-tests-rhel9 1787021657, openshift4/ose-tools-rhel9 1787019160, +184 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
7 mo ago

Exploit prediction

0.67% chance of exploitation in the next 30 days, higher than 52% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CISA ADP 3.1 9.0 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
NVD 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CNA 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CNA 3.1 9.0 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
OSV 3.1 9.0 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
bitnami golang
<1.25.9
>=1.26.0-0, <1.26.2
1.25.9
1.26.2
go toolchain
<1.25.9
>=1.26.0-0, <1.26.2
1.25.9
1.26.2

Affected products

  • Go toolchain cmd/go
  • Red Hat Red Hat Enterprise Linux 10
  • Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support
  • Red Hat Red Hat Enterprise Linux 8
  • Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  • Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On
  • Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  • Red Hat Red Hat Enterprise Linux 8.6 Telecommunications Update Service
  • Red Hat Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
  • Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service
  • Red Hat Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
  • Red Hat Red Hat Enterprise Linux 9
  • Red Hat Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions
  • Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions
  • Red Hat Red Hat Enterprise Linux 9.4 Extended Update Support
  • Red Hat Red Hat Enterprise Linux 9.6 Extended Update Support
  • Red Hat Red Hat OpenShift Container Platform 4.16
  • Red Hat Red Hat OpenShift Container Platform 4.17
  • Red Hat Red Hat OpenShift Container Platform 4.18
  • Red Hat Red Hat OpenShift Container Platform 4.19
  • Red Hat Red Hat OpenShift Container Platform 4.20
  • Red Hat OpenShift Service Mesh 2
  • Red Hat OpenShift Service Mesh 3
  • Red Hat Red Hat Hardened Images
  • Red Hat Red Hat OpenShift Container Platform 4
  • Red Hat Red Hat OpenShift Virtualization 4

Classification

Weakness
  • CWE-641 Improper Restriction of Names for Files and Other Resources
  • CWE-863 Incorrect Authorization

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.