CVE-2026-97040: Vulnerability in Go toolchain cmd/go
Critical. 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...
CWE-94
- Exploitation
- None confirmed
- Severity
- 9.8 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-9767-p5x8-v2p2
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weakness
- CWE-94
- Published
- 11 Nov 2026
- Last change
- 16 Nov 2026
Affected products
Affected versions and the first fixed release
- Go toolchain cmd/go Before 1.26.11; From 1.27.0-0 before 1.27.4. Fixed in 1.26.11, 1.27.4
- Go toolchain cmd/link Before 1.26.11; From 1.27.0-0 before 1.27.4. Fixed in 1.26.11, 1.27.4
Advisories
Vendor and security advisories
- go.dev/cl/862153
- go.dev/issue/82570
- groups.google.com/g/golang-announce/c/iY8TY0wWgbM
- pkg.go.dev/vuln/GO-2026-6851
Related
- cmd/go vulnerabilities Recent advisories, watch this product