CVEfocus › CVE database › CVE-2026-97041

CVE-2026-97041Host linker flag injection via //go:cgo_* directives in cmd/compile and cmd/link

CVSS 8.8 HighEPSS 0.6% (higher than 48% of CVEs)Published 2026-11-11Updated 2026-11-16Assigner: Go

Building a malicious package containing "//go:cgo_*" compiler directives could inject arbitrary flags into the external linker invocation on ELF platforms. The compiler and linker did not reject commas in "//go:cgo_import_dynamic", "//go:cgo_export_dynamic", "//go:cgo_export_static", "//go:cgo_import_static", and "//go:cgo_dynamic_linker" directives, and the linker passed the dynamic linker path using "-Wl,--dynamic-linker,<path>". Furthermore, the two-argument form of "//go:cgo_import_dynamic" (which is permitted in non-cgo Go source files) could overwrite the external symbol name of a symbol already marked for cgo export. A symbol name or dynamic linker path containing a comma or leading "@" could split "-Wl,--export-dynamic-symbol=" or "-Wl,--dynamic-linker," into arbitrary host linker flags or response file arguments. The compiler and linker now reject commas in "//go:cgo_*" symbol and dynamic linker directives, the linker passes "-Wl,--dynamic-linker=<path>", and "cgo_import_dynamic" no longer overwrites symbols exported via "cgo_export_dynamic" or "cgo_export_static".

CWE-88

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

71Fixed
23Fix pending
19Under investigation

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.10golang-1.26Fix pendingUBUNTU-CVE-2026-97041
Ubuntu 26.10golang-1.27Fix pendingUBUNTU-CVE-2026-97041
Ubuntu 26.04golang-1.23Under investigationUBUNTU-CVE-2026-97041
Ubuntu 26.04golang-1.24Under investigationUBUNTU-CVE-2026-97041
Ubuntu 26.04golang-1.25Under investigationUBUNTU-CVE-2026-97041
Ubuntu 26.04golang-1.26Under investigationUBUNTU-CVE-2026-97041
Ubuntu 24.04golang-1.21Under investigationUBUNTU-CVE-2026-97041
Ubuntu 24.04golang-1.22Under investigationUBUNTU-CVE-2026-97041
Ubuntu 24.04golang-1.23Under investigationUBUNTU-CVE-2026-97041
Ubuntu 24.04golang-1.24Under investigationUBUNTU-CVE-2026-97041
Ubuntu 24.04golang-1.25Under investigationUBUNTU-CVE-2026-97041
Ubuntu 24.04golang-1.26Under investigationUBUNTU-CVE-2026-97041
Ubuntu 22.04golang-1.13Fix pendingUBUNTU-CVE-2026-97041
Ubuntu 22.04golang-1.17Under investigationUBUNTU-CVE-2026-97041
Ubuntu 22.04golang-1.18Under investigationUBUNTU-CVE-2026-97041
Ubuntu 22.04golang-1.20Under investigationUBUNTU-CVE-2026-97041
Ubuntu 22.04golang-1.21Under investigationUBUNTU-CVE-2026-97041
Ubuntu 22.04golang-1.22Under investigationUBUNTU-CVE-2026-97041
Ubuntu 22.04golang-1.23Under investigationUBUNTU-CVE-2026-97041
Ubuntu 22.04golang-1.24Under investigationUBUNTU-CVE-2026-97041
Ubuntu 22.04golang-1.25Under investigationUBUNTU-CVE-2026-97041
Ubuntu 22.04golang-1.26Under investigationUBUNTU-CVE-2026-97041
Ubuntu 20.04golang-1.13Fix pendingUBUNTU-CVE-2026-97041
Ubuntu 20.04golang-1.14Fix pendingUBUNTU-CVE-2026-97041
Ubuntu 20.04golang-1.16Fix pendingUBUNTU-CVE-2026-97041
Ubuntu 20.04golang-1.18Fix pendingUBUNTU-CVE-2026-97041
Ubuntu 20.04golang-1.20Fix pendingUBUNTU-CVE-2026-97041
Ubuntu 20.04golang-1.21Fix pendingUBUNTU-CVE-2026-97041
Ubuntu 20.04golang-1.22Fix pendingUBUNTU-CVE-2026-97041
Ubuntu 18.04golang-1.10Fix pendingUBUNTU-CVE-2026-97041
Ubuntu 18.04golang-1.13Fix pendingUBUNTU-CVE-2026-97041
Ubuntu 18.04golang-1.16Fix pendingUBUNTU-CVE-2026-97041
Ubuntu 18.04golang-1.18Fix pendingUBUNTU-CVE-2026-97041
Ubuntu 18.04golang-1.8Fix pendingUBUNTU-CVE-2026-97041
Ubuntu 18.04golang-1.9Fix pendingUBUNTU-CVE-2026-97041
Ubuntu 16.04golang-1.10Fix pendingUBUNTU-CVE-2026-97041
Ubuntu 16.04golang-1.13Fix pendingUBUNTU-CVE-2026-97041
Ubuntu 16.04golang-1.18Fix pendingUBUNTU-CVE-2026-97041
Ubuntu 16.04golang-1.6Fix pendingUBUNTU-CVE-2026-97041
Ubuntu 14.04golang-1.10Fix pendingUBUNTU-CVE-2026-97041
Debian 14golang-1.26Fixed1.26.11-1DEBIAN-CVE-2026-97041
Debian 14golang-1.27Fixed1.27.4-1DEBIAN-CVE-2026-97041
Debian 13golang-1.24Fix pendingDEBIAN-CVE-2026-97041
Debian 12golang-1.19Fix pendingDEBIAN-CVE-2026-97041
Red Hat Enterprise Linux 10go-toolsetFixed0:1.27.4-3.el10_3RHSA-2026:102587
Red Hat Enterprise Linux 10golangFixed0:1.27.4-3.el10_3RHSA-2026:102587
Red Hat Enterprise Linux 10golang-binFixed0:1.27.4-3.el10_3RHSA-2026:102587
Red Hat Enterprise Linux 10golang-docsFixed0:1.27.4-3.el10_3RHSA-2026:102587
Red Hat Enterprise Linux 10golang-miscFixed0:1.27.4-3.el10_3RHSA-2026:102587
Red Hat Enterprise Linux 10golang-raceFixed0:1.27.4-3.el10_3RHSA-2026:102587
Red Hat Enterprise Linux 10golang-srcFixed0:1.27.4-3.el10_3RHSA-2026:102587
Red Hat Enterprise Linux 10golang-testsFixed0:1.27.4-3.el10_3RHSA-2026:102587
Red Hat Enterprise Linux 9go-toolsetFixed0:1.27.4-1.el9_9RHSA-2026:102586
Red Hat Enterprise Linux 9golangFixed0:1.27.4-1.el9_9RHSA-2026:102586
Red Hat Enterprise Linux 9golang-binFixed0:1.27.4-1.el9_9RHSA-2026:102586
Red Hat Enterprise Linux 9golang-docsFixed0:1.27.4-1.el9_9RHSA-2026:102586
Red Hat Enterprise Linux 9golang-miscFixed0:1.27.4-1.el9_9RHSA-2026:102586
Red Hat Enterprise Linux 9golang-raceFixed0:1.27.4-1.el9_9RHSA-2026:102586
Red Hat Enterprise Linux 9golang-srcFixed0:1.27.4-1.el9_9RHSA-2026:102586
Red Hat Enterprise Linux 9golang-testsFixed0:1.27.4-1.el9_9RHSA-2026:102586
Red Hat Enterprise Linux 8delveFixed0:1.26.1-2.module+el8.10.0+25288+9abe63b5RHSA-2026:102592
Red Hat Enterprise Linux 8go-toolsetFixed0:1.26.11-1.module+el8.10.0+25386+b281b585RHSA-2026:102592
Red Hat Enterprise Linux 8golangFixed0:1.26.11-1.module+el8.10.0+25386+b281b585RHSA-2026:102592
Red Hat Enterprise Linux 8golang-binFixed0:1.26.11-1.module+el8.10.0+25386+b281b585RHSA-2026:102592
Red Hat Enterprise Linux 8golang-docsFixed0:1.26.11-1.module+el8.10.0+25386+b281b585RHSA-2026:102592
Red Hat Enterprise Linux 8golang-miscFixed0:1.26.11-1.module+el8.10.0+25386+b281b585RHSA-2026:102592
Red Hat Enterprise Linux 8golang-raceFixed0:1.26.11-1.module+el8.10.0+25386+b281b585RHSA-2026:102592
Red Hat Enterprise Linux 8golang-srcFixed0:1.26.11-1.module+el8.10.0+25386+b281b585RHSA-2026:102592
Red Hat Enterprise Linux 8golang-testsFixed0:1.26.11-1.module+el8.10.0+25386+b281b585RHSA-2026:102592
AlmaLinux 10go-toolsetFixed1.27.4-3.el10_3.alma.1ALSA-2026:102587
AlmaLinux 10golangFixed1.27.4-3.el10_3.alma.1ALSA-2026:102587
AlmaLinux 10golang-binFixed1.27.4-3.el10_3.alma.1ALSA-2026:102587
AlmaLinux 10golang-docsFixed1.27.4-3.el10_3.alma.1ALSA-2026:102587
AlmaLinux 10golang-miscFixed1.27.4-3.el10_3.alma.1ALSA-2026:102587
AlmaLinux 10golang-raceFixed1.27.4-3.el10_3.alma.1ALSA-2026:102587
AlmaLinux 10golang-srcFixed1.27.4-3.el10_3.alma.1ALSA-2026:102587
AlmaLinux 10golang-testsFixed1.27.4-3.el10_3.alma.1ALSA-2026:102587
AlmaLinux 9go-toolsetFixed1.27.4-1.el9_9ALSA-2026:102586
AlmaLinux 9golangFixed1.27.4-1.el9_9ALSA-2026:102586
AlmaLinux 9golang-binFixed1.27.4-1.el9_9ALSA-2026:102586
AlmaLinux 9golang-docsFixed1.27.4-1.el9_9ALSA-2026:102586
AlmaLinux 9golang-miscFixed1.27.4-1.el9_9ALSA-2026:102586
AlmaLinux 9golang-raceFixed1.27.4-1.el9_9ALSA-2026:102586
AlmaLinux 9golang-srcFixed1.27.4-1.el9_9ALSA-2026:102586
AlmaLinux 9golang-testsFixed1.27.4-1.el9_9ALSA-2026:102586
AlmaLinux 8delveFixed1.26.1-2.module_el8.10.0+4353+8cb525ccALSA-2026:102592
Rocky Linux 10go-toolsetFixed0:1.27.4-3.el10_3RLSA-2026:102587
Rocky Linux 10golangFixed0:1.27.4-3.el10_3RLSA-2026:102587
Rocky Linux 10golang-binFixed0:1.27.4-3.el10_3RLSA-2026:102587
Rocky Linux 10golang-docsFixed0:1.27.4-3.el10_3RLSA-2026:102587
Rocky Linux 10golang-miscFixed0:1.27.4-3.el10_3RLSA-2026:102587
Rocky Linux 10golang-raceFixed0:1.27.4-3.el10_3RLSA-2026:102587
Rocky Linux 10golang-srcFixed0:1.27.4-3.el10_3RLSA-2026:102587
Rocky Linux 10golang-testsFixed0:1.27.4-3.el10_3RLSA-2026:102587
Rocky Linux 9go-toolsetFixed0:1.27.4-1.el9_9RLSA-2026:102586
Rocky Linux 9golangFixed0:1.27.4-1.el9_9RLSA-2026:102586
Rocky Linux 9golang-binFixed0:1.27.4-1.el9_9RLSA-2026:102586
Rocky Linux 9golang-docsFixed0:1.27.4-1.el9_9RLSA-2026:102586
Rocky Linux 9golang-miscFixed0:1.27.4-1.el9_9RLSA-2026:102586
Rocky Linux 9golang-raceFixed0:1.27.4-1.el9_9RLSA-2026:102586
Rocky Linux 9golang-srcFixed0:1.27.4-1.el9_9RLSA-2026:102586
Rocky Linux 9golang-testsFixed0:1.27.4-1.el9_9RLSA-2026:102586
Rocky Linux 8delveFixed0:1.26.1-2.module+el8.10.0+40408+b9bc4117RLSA-2026:102592
Rocky Linux 8go-toolsetFixed0:1.26.11-1.module+el8.10.0+40500+a2fcb627RLSA-2026:102592
Rocky Linux 8golangFixed0:1.26.11-1.module+el8.10.0+40500+a2fcb627RLSA-2026:102592
Rocky Linux 8golang-binFixed0:1.26.11-1.module+el8.10.0+40500+a2fcb627RLSA-2026:102592
Rocky Linux 8golang-docsFixed0:1.26.11-1.module+el8.10.0+40500+a2fcb627RLSA-2026:102592
Rocky Linux 8golang-miscFixed0:1.26.11-1.module+el8.10.0+40500+a2fcb627RLSA-2026:102592
Rocky Linux 8golang-raceFixed0:1.26.11-1.module+el8.10.0+40500+a2fcb627RLSA-2026:102592
Rocky Linux 8golang-srcFixed0:1.26.11-1.module+el8.10.0+40500+a2fcb627RLSA-2026:102592
Rocky Linux 8golang-testsFixed0:1.26.11-1.module+el8.10.0+40500+a2fcb627RLSA-2026:102592
Alpine Linux 3.24goFixed1.26.11-r0ALPINE-CVE-2026-97041
Go librarytoolchainFixed1.27.4GO-2026-6850

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.