CVE-2026-97040: Go toolchain cmd/go RCE

CVE-2026-97040

NVDCVSS scored by 134c704f-9b21-4f2e-91b3-4a467353bcc0

Vulnerability Summary

Building a package containing a crafted ".syso" file could bypass cgo flag validation and inject arbitrary linker flags when linking. When loading ".syso" entries from a package archive, the linker only checked for recognized host object headers (ELF, Mach-O, PE, and XCOFF) before falling through to Go object parsing. A ".syso" file beginning with a "go object" header was parsed as a Go compiler object, allowing untrusted cgo metadata directives (such as "cgo_ldflag" or "cgo_dynamic_linker") embedded in the ".syso" file to be passed to the external linker without validation. Additionally, ".syso" filenames longer than 16 bytes lost their ".syso" extension when truncated in archive headers, and unrecognized ".syso" formats forced external linking in pure-Go builds. The linker now rejects ".syso" files that are not recognized host object formats, and "cmd/go" and "cmd/pack" preserve the ".syso" suffix when truncating long archive member names.
Severity Level
CRITICAL(9.8)
Published Date
Nov 11, 2026
Last Modified
Nov 16, 2026
Exploitation Status
No confirmed exploitation yet
EPSS Score (30-Day)
0.80%Probability
Root Weakness (CWE)
The software constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended syntax or behavior.
CVSS v3.1 Base Metrics — Score 9.8 (CRITICAL)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

Affected & Patched Versions

Affected Versions
  • Go toolchain cmd/go < 1.26.11
  • Go toolchain cmd/go >= 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
Patched Versions
  • Go toolchain cmd/go 1.26.11
  • Go toolchain cmd/go 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 critical.

  1. Check whether you run Go toolchain cmd/go and which version.
  2. 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 9.8
  • Nov 16, 2026Severity changed to CRITICAL

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new Go toolchain cmd/go CVEsYou are reading CVE-2026-97040. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Dec 2, 2026 05:10 UTC