CVE-2026-97038Arbitrary code execution via crafted .syso files and cgo linker input files in cmd/go
Building a malicious package containing ".syso" files or cgo linker inputs could inject arbitrary linker flags or execute arbitrary code at link time. Linker input files—including ".syso" files, direct object or library inputs in "#cgo LDFLAGS", and libraries in "-L" directories—were passed to the external linker without validating their format or checking for embedded linker options. Across platforms, this allowed executing GNU ld implicit linker scripts disguised as libraries or ".syso" files (or loaded via "-l:<filename>" or "-l" containing path separators), injecting unallowlisted linker flags via PE/COFF ".drectve" sections on Windows or Mach-O "LC_LINKER_OPTION" load commands on Darwin, or invoking LTO plugins via GCC or LLVM LTO intermediate representation sections in ELF, PE/COFF, or Mach-O objects. The go command now verifies that ".syso" files, direct linker inputs, and libraries in "-L" directories are valid binary objects or archives that do not contain unallowlisted ".drectve" directives, "LC_LINKER_OPTION" load commands, or LTO IR sections, and disallows "-l:<filename>" and ":", "=", or path separators in "-l" flags.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | golang-1.26 | Fix pending | UBUNTU-CVE-2026-97038 | |
| Ubuntu 26.10 | golang-1.27 | Fix pending | UBUNTU-CVE-2026-97038 | |
| Ubuntu 26.04 | golang-1.23 | Under investigation | UBUNTU-CVE-2026-97038 | |
| Ubuntu 26.04 | golang-1.24 | Under investigation | UBUNTU-CVE-2026-97038 | |
| Ubuntu 26.04 | golang-1.25 | Under investigation | UBUNTU-CVE-2026-97038 | |
| Ubuntu 26.04 | golang-1.26 | Under investigation | UBUNTU-CVE-2026-97038 | |
| Ubuntu 24.04 | golang-1.21 | Under investigation | UBUNTU-CVE-2026-97038 | |
| Ubuntu 24.04 | golang-1.22 | Under investigation | UBUNTU-CVE-2026-97038 | |
| Ubuntu 24.04 | golang-1.23 | Under investigation | UBUNTU-CVE-2026-97038 | |
| Ubuntu 24.04 | golang-1.24 | Under investigation | UBUNTU-CVE-2026-97038 | |
| Ubuntu 24.04 | golang-1.25 | Under investigation | UBUNTU-CVE-2026-97038 | |
| Ubuntu 24.04 | golang-1.26 | Under investigation | UBUNTU-CVE-2026-97038 | |
| Ubuntu 22.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2026-97038 | |
| Ubuntu 22.04 | golang-1.17 | Under investigation | UBUNTU-CVE-2026-97038 | |
| Ubuntu 22.04 | golang-1.18 | Under investigation | UBUNTU-CVE-2026-97038 | |
| Ubuntu 22.04 | golang-1.20 | Under investigation | UBUNTU-CVE-2026-97038 | |
| Ubuntu 22.04 | golang-1.21 | Under investigation | UBUNTU-CVE-2026-97038 | |
| Ubuntu 22.04 | golang-1.22 | Under investigation | UBUNTU-CVE-2026-97038 | |
| Ubuntu 22.04 | golang-1.23 | Under investigation | UBUNTU-CVE-2026-97038 | |
| Ubuntu 22.04 | golang-1.24 | Under investigation | UBUNTU-CVE-2026-97038 | |
| Ubuntu 22.04 | golang-1.25 | Under investigation | UBUNTU-CVE-2026-97038 | |
| Ubuntu 22.04 | golang-1.26 | Under investigation | UBUNTU-CVE-2026-97038 | |
| Ubuntu 20.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2026-97038 | |
| Ubuntu 20.04 | golang-1.14 | Fix pending | UBUNTU-CVE-2026-97038 | |
| Ubuntu 20.04 | golang-1.16 | Fix pending | UBUNTU-CVE-2026-97038 | |
| Ubuntu 20.04 | golang-1.18 | Fix pending | UBUNTU-CVE-2026-97038 | |
| Ubuntu 20.04 | golang-1.20 | Fix pending | UBUNTU-CVE-2026-97038 | |
| Ubuntu 20.04 | golang-1.21 | Fix pending | UBUNTU-CVE-2026-97038 | |
| Ubuntu 20.04 | golang-1.22 | Fix pending | UBUNTU-CVE-2026-97038 | |
| Ubuntu 18.04 | golang-1.10 | Fix pending | UBUNTU-CVE-2026-97038 | |
| Ubuntu 18.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2026-97038 | |
| Ubuntu 18.04 | golang-1.16 | Fix pending | UBUNTU-CVE-2026-97038 | |
| Ubuntu 18.04 | golang-1.18 | Fix pending | UBUNTU-CVE-2026-97038 | |
| Ubuntu 18.04 | golang-1.8 | Fix pending | UBUNTU-CVE-2026-97038 | |
| Ubuntu 18.04 | golang-1.9 | Fix pending | UBUNTU-CVE-2026-97038 | |
| Ubuntu 16.04 | golang-1.10 | Fix pending | UBUNTU-CVE-2026-97038 | |
| Ubuntu 16.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2026-97038 | |
| Ubuntu 16.04 | golang-1.18 | Fix pending | UBUNTU-CVE-2026-97038 | |
| Ubuntu 16.04 | golang-1.6 | Fix pending | UBUNTU-CVE-2026-97038 | |
| Ubuntu 14.04 | golang-1.10 | Fix pending | UBUNTU-CVE-2026-97038 | |
| Debian 14 | golang-1.26 | Fixed | 1.26.11-1 | DEBIAN-CVE-2026-97038 |
| Debian 14 | golang-1.27 | Fixed | 1.27.4-1 | DEBIAN-CVE-2026-97038 |
| Debian 13 | golang-1.24 | Fix pending | DEBIAN-CVE-2026-97038 | |
| Debian 12 | golang-1.19 | Fix pending | DEBIAN-CVE-2026-97038 | |
| Red Hat Enterprise Linux 10 | go-toolset | Fixed | 0:1.27.4-3.el10_3 | RHSA-2026:102587 |
| Red Hat Enterprise Linux 10 | golang | Fixed | 0:1.27.4-3.el10_3 | RHSA-2026:102587 |
| Red Hat Enterprise Linux 10 | golang-bin | Fixed | 0:1.27.4-3.el10_3 | RHSA-2026:102587 |
| Red Hat Enterprise Linux 10 | golang-docs | Fixed | 0:1.27.4-3.el10_3 | RHSA-2026:102587 |
| Red Hat Enterprise Linux 10 | golang-misc | Fixed | 0:1.27.4-3.el10_3 | RHSA-2026:102587 |
| Red Hat Enterprise Linux 10 | golang-race | Fixed | 0:1.27.4-3.el10_3 | RHSA-2026:102587 |
| Red Hat Enterprise Linux 10 | golang-src | Fixed | 0:1.27.4-3.el10_3 | RHSA-2026:102587 |
| Red Hat Enterprise Linux 10 | golang-tests | Fixed | 0:1.27.4-3.el10_3 | RHSA-2026:102587 |
| Red Hat Enterprise Linux 9 | go-toolset | Fixed | 0:1.27.4-1.el9_9 | RHSA-2026:102586 |
| Red Hat Enterprise Linux 9 | golang | Fixed | 0:1.27.4-1.el9_9 | RHSA-2026:102586 |
| Red Hat Enterprise Linux 9 | golang-bin | Fixed | 0:1.27.4-1.el9_9 | RHSA-2026:102586 |
| Red Hat Enterprise Linux 9 | golang-docs | Fixed | 0:1.27.4-1.el9_9 | RHSA-2026:102586 |
| Red Hat Enterprise Linux 9 | golang-misc | Fixed | 0:1.27.4-1.el9_9 | RHSA-2026:102586 |
| Red Hat Enterprise Linux 9 | golang-race | Fixed | 0:1.27.4-1.el9_9 | RHSA-2026:102586 |
| Red Hat Enterprise Linux 9 | golang-src | Fixed | 0:1.27.4-1.el9_9 | RHSA-2026:102586 |
| Red Hat Enterprise Linux 9 | golang-tests | Fixed | 0:1.27.4-1.el9_9 | RHSA-2026:102586 |
| Red Hat Enterprise Linux 8 | delve | Fixed | 0:1.26.1-2.module+el8.10.0+25288+9abe63b5 | RHSA-2026:102592 |
| Red Hat Enterprise Linux 8 | go-toolset | Fixed | 0:1.26.11-1.module+el8.10.0+25386+b281b585 | RHSA-2026:102592 |
| Red Hat Enterprise Linux 8 | golang | Fixed | 0:1.26.11-1.module+el8.10.0+25386+b281b585 | RHSA-2026:102592 |
| Red Hat Enterprise Linux 8 | golang-bin | Fixed | 0:1.26.11-1.module+el8.10.0+25386+b281b585 | RHSA-2026:102592 |
| Red Hat Enterprise Linux 8 | golang-docs | Fixed | 0:1.26.11-1.module+el8.10.0+25386+b281b585 | RHSA-2026:102592 |
| Red Hat Enterprise Linux 8 | golang-misc | Fixed | 0:1.26.11-1.module+el8.10.0+25386+b281b585 | RHSA-2026:102592 |
| Red Hat Enterprise Linux 8 | golang-race | Fixed | 0:1.26.11-1.module+el8.10.0+25386+b281b585 | RHSA-2026:102592 |
| Red Hat Enterprise Linux 8 | golang-src | Fixed | 0:1.26.11-1.module+el8.10.0+25386+b281b585 | RHSA-2026:102592 |
| Red Hat Enterprise Linux 8 | golang-tests | Fixed | 0:1.26.11-1.module+el8.10.0+25386+b281b585 | RHSA-2026:102592 |
| AlmaLinux 10 | go-toolset | Fixed | 1.27.4-3.el10_3.alma.1 | ALSA-2026:102587 |
| AlmaLinux 10 | golang | Fixed | 1.27.4-3.el10_3.alma.1 | ALSA-2026:102587 |
| AlmaLinux 10 | golang-bin | Fixed | 1.27.4-3.el10_3.alma.1 | ALSA-2026:102587 |
| AlmaLinux 10 | golang-docs | Fixed | 1.27.4-3.el10_3.alma.1 | ALSA-2026:102587 |
| AlmaLinux 10 | golang-misc | Fixed | 1.27.4-3.el10_3.alma.1 | ALSA-2026:102587 |
| AlmaLinux 10 | golang-race | Fixed | 1.27.4-3.el10_3.alma.1 | ALSA-2026:102587 |
| AlmaLinux 10 | golang-src | Fixed | 1.27.4-3.el10_3.alma.1 | ALSA-2026:102587 |
| AlmaLinux 10 | golang-tests | Fixed | 1.27.4-3.el10_3.alma.1 | ALSA-2026:102587 |
| AlmaLinux 9 | go-toolset | Fixed | 1.27.4-1.el9_9 | ALSA-2026:102586 |
| AlmaLinux 9 | golang | Fixed | 1.27.4-1.el9_9 | ALSA-2026:102586 |
| AlmaLinux 9 | golang-bin | Fixed | 1.27.4-1.el9_9 | ALSA-2026:102586 |
| AlmaLinux 9 | golang-docs | Fixed | 1.27.4-1.el9_9 | ALSA-2026:102586 |
| AlmaLinux 9 | golang-misc | Fixed | 1.27.4-1.el9_9 | ALSA-2026:102586 |
| AlmaLinux 9 | golang-race | Fixed | 1.27.4-1.el9_9 | ALSA-2026:102586 |
| AlmaLinux 9 | golang-src | Fixed | 1.27.4-1.el9_9 | ALSA-2026:102586 |
| AlmaLinux 9 | golang-tests | Fixed | 1.27.4-1.el9_9 | ALSA-2026:102586 |
| AlmaLinux 8 | delve | Fixed | 1.26.1-2.module_el8.10.0+4353+8cb525cc | ALSA-2026:102592 |
| Rocky Linux 10 | go-toolset | Fixed | 0:1.27.4-3.el10_3 | RLSA-2026:102587 |
| Rocky Linux 10 | golang | Fixed | 0:1.27.4-3.el10_3 | RLSA-2026:102587 |
| Rocky Linux 10 | golang-bin | Fixed | 0:1.27.4-3.el10_3 | RLSA-2026:102587 |
| Rocky Linux 10 | golang-docs | Fixed | 0:1.27.4-3.el10_3 | RLSA-2026:102587 |
| Rocky Linux 10 | golang-misc | Fixed | 0:1.27.4-3.el10_3 | RLSA-2026:102587 |
| Rocky Linux 10 | golang-race | Fixed | 0:1.27.4-3.el10_3 | RLSA-2026:102587 |
| Rocky Linux 10 | golang-src | Fixed | 0:1.27.4-3.el10_3 | RLSA-2026:102587 |
| Rocky Linux 10 | golang-tests | Fixed | 0:1.27.4-3.el10_3 | RLSA-2026:102587 |
| Rocky Linux 9 | go-toolset | Fixed | 0:1.27.4-1.el9_9 | RLSA-2026:102586 |
| Rocky Linux 9 | golang | Fixed | 0:1.27.4-1.el9_9 | RLSA-2026:102586 |
| Rocky Linux 9 | golang-bin | Fixed | 0:1.27.4-1.el9_9 | RLSA-2026:102586 |
| Rocky Linux 9 | golang-docs | Fixed | 0:1.27.4-1.el9_9 | RLSA-2026:102586 |
| Rocky Linux 9 | golang-misc | Fixed | 0:1.27.4-1.el9_9 | RLSA-2026:102586 |
| Rocky Linux 9 | golang-race | Fixed | 0:1.27.4-1.el9_9 | RLSA-2026:102586 |
| Rocky Linux 9 | golang-src | Fixed | 0:1.27.4-1.el9_9 | RLSA-2026:102586 |
| Rocky Linux 9 | golang-tests | Fixed | 0:1.27.4-1.el9_9 | RLSA-2026:102586 |
| Rocky Linux 8 | delve | Fixed | 0:1.26.1-2.module+el8.10.0+40408+b9bc4117 | RLSA-2026:102592 |
| Rocky Linux 8 | go-toolset | Fixed | 0:1.26.11-1.module+el8.10.0+40500+a2fcb627 | RLSA-2026:102592 |
| Rocky Linux 8 | golang | Fixed | 0:1.26.11-1.module+el8.10.0+40500+a2fcb627 | RLSA-2026:102592 |
| Rocky Linux 8 | golang-bin | Fixed | 0:1.26.11-1.module+el8.10.0+40500+a2fcb627 | RLSA-2026:102592 |
| Rocky Linux 8 | golang-docs | Fixed | 0:1.26.11-1.module+el8.10.0+40500+a2fcb627 | RLSA-2026:102592 |
| Rocky Linux 8 | golang-misc | Fixed | 0:1.26.11-1.module+el8.10.0+40500+a2fcb627 | RLSA-2026:102592 |
| Rocky Linux 8 | golang-race | Fixed | 0:1.26.11-1.module+el8.10.0+40500+a2fcb627 | RLSA-2026:102592 |
| Rocky Linux 8 | golang-src | Fixed | 0:1.26.11-1.module+el8.10.0+40500+a2fcb627 | RLSA-2026:102592 |
| Rocky Linux 8 | golang-tests | Fixed | 0:1.26.11-1.module+el8.10.0+40500+a2fcb627 | RLSA-2026:102592 |
| Alpine Linux 3.24 | go | Fixed | 1.26.11-r0 | ALPINE-CVE-2026-97038 |
| Go library | toolchain | Fixed | 1.27.4 | GO-2026-6853 |
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.
- Go toolchain cmd/go: affected: before 1.26.11, 1.27.0-0 to before 1.27.4; fixed in
1.26.11,1.27.4
References
- https://go.dev/cl/862151
- https://go.dev/issue/82572
- https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM
- https://pkg.go.dev/vuln/GO-2026-6853
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.