CVE-2026-97041
NVDCVSS scored by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Vulnerability Summary
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".
CVSS v3.1 Base Metrics — Score 8.8 (HIGH)
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh
Affected & Patched Versions
- Go toolchain cmd/compile < 1.26.11
- Go toolchain cmd/compile >= 1.27.0-0 and < 1.27.4
- Go toolchain cmd/link < 1.26.11
- Go toolchain cmd/link >= 1.27.0-0 and < 1.27.4
- Go toolchain cmd/compile 1.26.11
- Go toolchain cmd/compile 1.27.4
- Go toolchain cmd/link 1.26.11
- Go toolchain cmd/link 1.27.4
What to do
Plan remediation soon. No exploitation is confirmed yet, but the severity is high.
- Check whether you run Go toolchain cmd/compile and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Nov 11, 2026Published
- Nov 16, 2026Record last modified
- Nov 16, 2026CVSS score changed: 0.0 to 8.8
- Nov 16, 2026Severity changed to HIGH
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new Go toolchain cmd/compile CVEsYou are reading CVE-2026-97041. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Referencehttps://go.dev/cl/862154
- Issue Trackinghttps://go.dev/issue/82569
- Referencehttps://groups.google.com/g/golang-announce/c/iY8TY0wWgbM
- Referencehttps://pkg.go.dev/vuln/GO-2026-6850
Data last checked: Dec 2, 2026 05:10 UTC