ZeroDay Brief
CVE-2026-97040

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

CVSS
9.8Critical
Chance of exploitation (EPSS)
0.80%
Published
Nov 11, 2026
In the news
Not yet
More from this vendor

What to do

A critical code injection flaw in Go Toolchain Cmd Go and Go Toolchain Cmd Link that can be attacked over the network without logging in. No attacks are reported yet, but patch it soon.

Action: Check the vendor's advisory in the references and apply updates as soon as they are available.

Fixed in: 1.26.11, 1.27.4

Affected versions
Go Toolchain Cmd Go
Before 1.26.11; 1.27.0-0 to before 1.27.4
Go Toolchain Cmd Link
Before 1.26.11; 1.27.0-0 to before 1.27.4

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.

CWE-94

Affected products

Get alerts for these →

Timeline 21

Latest change: Tenable Cloud Security plugin 498964: Google: dev-lang/go: security update to 20346.0.42 (Dec 2, 2026)

News, advisories, exploit code, scanner detection and exploitation, newest first.

Wed, Nov 11, 2026

  1. CVECVE-2026-97040 published (CVSS 9.8)CVE Program · 05:19 UTC

References 4

You are leaving ZeroDay Brief

This link goes to exploit code on a third-party site. We find these links automatically and do not test, review or vouch for them. They may contain malware or fake exploits.

We are not responsible for anything that happens if you open the page or run its code. Never run exploit code on systems you care about.

↑ ↓ moveEnter openEsc closeTry “CVE-2026”, “fortinet” or “ivanti”