CVE-2026-97037
NVDCVSS scored by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Vulnerability Summary
Building a malicious package that uses cgo could cause arbitrary code execution at link time by passing linker script files to the host linker via "#cgo LDFLAGS". Split "-Wl," flags that consume a following argument (such as "-Wl,-rpath", "-Wl,--just-symbols", and "-Wl,-undefined") previously accepted a bare second argument without a "-Wl," prefix, which the compiler driver passes directly to the linker as a positional input file. Additionally, when using GNU ld.bfd, flags such as "-framework", "-Wl,-framework", "-Wl,-undefined", "-Wl,--just-symbols", "-Wl,-R", "-Wl,-subsystem", and (on non-Darwin platforms) "-Wl,-sectcreate" could cause ld.bfd to interpret their arguments as linker scripts if they named a regular file on disk. The go command now requires a "-Wl," prefix on the second token of split "-Wl," flags (except "-Wl,-R"), verifies that these flags do not reference linker script files, and disallows bare "-Wl,--warn-backrefs-exclude".
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/go < 1.26.11
- Go toolchain cmd/go >= 1.27.0-0 and < 1.27.4
- Go toolchain cmd/go 1.26.11
- Go toolchain cmd/go 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/go and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Nov 11, 2026Published
- Nov 16, 2026CVSS score changed: 0.0 to 8.8
- Nov 16, 2026Severity changed to HIGH
- Nov 17, 2026Record last modified
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-97037. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Referencehttps://go.dev/cl/862150
- Issue Trackinghttps://go.dev/issue/82573
- Referencehttps://groups.google.com/g/golang-announce/c/iY8TY0wWgbM
- Referencehttps://pkg.go.dev/vuln/GO-2026-6854
Data last checked: Dec 2, 2026 05:10 UTC