When using GCC, building a malicious package that uses cgo could cause arbitrary command execution at link time via untrusted GCC spec files ("specs" or "*.spec").
- CVSS
- 8.8High
- Chance of exploitation (EPSS)
- 0.83%
- Published
- Nov 11, 2026
- In the news
- Not yet
What to do
A serious command injection flaw in Go Toolchain Cmd Go that can be attacked over the network without logging in, if someone is tricked into an action. No attacks are reported yet; it can go in your normal patch cycle.
Action: Check the vendor's advisory in the references and apply updates as soon as they are available.
Fixed in: 1.26.11, 1.27.4
Affected versions
- Go Toolchain Cmd Go
- Before 1.26.11; 1.27.0-0 to before 1.27.4
Description
When using GCC, building a malicious package that uses cgo could cause arbitrary command execution at link time via untrusted GCC spec files ("specs" or "*.spec"). When linking with "-fopenmp", "-fopenacc", or "-fsanitize=" in "#cgo LDFLAGS", GCC's built-in link spec evaluates "%:include(libgomp.spec)" or "%:include(libsanitizer.spec)" and searches for spec files in "-L" and sysroot directories (including subdirectories and multilib sibling directories such as "../lib64"), as well as the working directory when "-fopenmp" or "-fopenacc" is used or when "-fsanitize=" is combined with "-static" or "-static-lib*". The go command now rejects "-L", "-isysroot", and "-Wl,-syslibroot" directories (and the working and package directories when applicable) that contain GCC spec files, and disallows "@" and "-" prefixes in "-fsanitize=" compiler flag values.
Affected products
Get alerts for these →Timeline 21
Latest change: Tenable Cloud Security plugin 484420: Google: dev-lang/go: security update to 19999.44.277 (Nov 26, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Fri, Nov 27, 2026
Thu, Nov 26, 2026
Wed, Nov 25, 2026
- DetectionNessus plugin 385941: RockyLinux 9 : golang (RLSA-2026:102586)Tenable
- DetectionNessus plugin 386035: RHEL 9 : golang (RHSA-2026:102586)Tenable
Tue, Nov 24, 2026
Sun, Nov 22, 2026
- DetectionNessus plugin 385105: openSUSE 16 Security Update : go1.26 (openSUSE-SU-2026:22407-1)Tenable
- DetectionNessus plugin 385126: openSUSE 16 Security Update : go1.27 (openSUSE-SU-2026:22374-1)Tenable
- DetectionNessus plugin 385127: openSUSE 16 Security Update : go1.26 (openSUSE-SU-2026:22386-1)Tenable
- DetectionNessus plugin 385129: openSUSE 16 Security Update : go1.27 (openSUSE-SU-2026:22405-1)Tenable
Fri, Nov 20, 2026
Wed, Nov 18, 2026
Sat, Nov 14, 2026
Fri, Nov 13, 2026
Wed, Nov 11, 2026
- CVECVE-2026-97034 published (CVSS 8.8)CVE Program · 05:19 UTC
Tue, Nov 10, 2026
References 4
- go.dev /cl/862147
- go.dev /issue/82576
- groups.google.com /g/golang-announce/c/iY8TY0wWgbM
- pkg.go.dev /vuln/GO-2026-6857