StraitOfVuln
Latest / CVE-2026-97040

CVE-2026-97040

CriticalCVSS 9.8 (v3.1)Awaiting Analysis
CVE.org ↗NVD ↗

Description

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.

Details

CVE ID
CVE-2026-97040
Published / updated
11 Nov 2026, 05:19 UTC · last modified 16 Nov 2026, 18:17 UTC
Severity
CRITICAL
CVSS score
9.8 · v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H · Attack vector: Network
Affected vendor
Go toolchain
Affected products
cmd/go, cmd/link
Affected versions
cmd/go: before 1.26.11, 1.27.0-0 to before 1.27.4
cmd/link: before 1.26.11, 1.27.0-0 to before 1.27.4
From the publisher's (CNA) CVE record. NVD analysis is pending.
Fixed versions
cmd/go 1.26.11, cmd/go 1.27.4, cmd/link 1.26.11, cmd/link 1.27.4
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
0.80% probability of exploitation in the next 30 days · 58% percentile (02 Dec 2026)
Weakness
Remediation
See the vendor advisory below.
Source (CNA)
security@golang.org