Duty analyst on shift

UK Cyber Defence
VulnerabilityAwaiting Analysis

CVE-2026-97040

Building a package containing a crafted ".syso" file could bypass cgo flag validation and inject arbitrary linker flags when linking.

CRITICAL 9.8EPSS 0.80%

Does this matter?

High impact if exploited, but EPSS currently rates exploitation as unlikely (0.80%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.

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.

CVSS 3.1
9.8 CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.80% probability · 53th percentile
Public exploits
None in Exploit-DB
CISA KEV
Not listed
Weakness
CWE-94
Source
security@golang.org
EPSS trend
0%3%5%11 November 2026: 0.25%27 November 2026: 0.80%11 November 202627 November 2026

EPSS moved from 0.2% on 11 November 2026 to 0.8% on 27 November 2026.

Source: NVD record, EPSS from FIRST.org, KEV from CISA, exploits from Exploit-DB. Refreshed daily. Download this record as JSON.