Arbitrary Linker Flag Injection Vulnerability in Go Programming Language

Patch this weekFull system takeover over the network, no login needed.
9.8CRITICAL

CVE-2026-97040

Key Information:

Vendor

Go Toolchain

Status
Cmd/go
Cmd/link
CVE ID
CVE ID:
CVE-2026-97040
Vendor
CVE Published:
11 November 2026
Fixed in
Fixed in:
1.26.11, 1.27.4

Timeline

Trending 8 days after it was published

  • 📈

    Vulnerability started trending

  • Vulnerability published

  • Vulnerability Reserved

Badges

📈 Trended📈 Score: 2,180

How risky is it?

  • Yes: Works over the network, no login needed
  • No: No public exploit yet
  • No: Not on CISA's exploited list
  • No: No ransomware use seen

Our verdict

Patch this week

Exploitation is likely. Prioritise the fix.

What to do

1Update to a fixed version
cmd/go 0 to below 1.26.11 is vulnerable
cmd/go 1.27.0-0 to below 1.27.4 is vulnerable
cmd/link 0 to below 1.26.11 is vulnerable
cmd/link 1.27.0-0 to below 1.27.4 is vulnerable

Install the cmd/go release that fixes your version line, or later:

1.26.111.27.4

Install the cmd/link release that fixes your version line, or later:

1.26.111.27.4
2Can't patch yet? Reduce exposure

It can be reached over the network, so limit who can reach cmd/go. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.

3Why it's rated "Patch this week"
  • It can be exploited remotely without credentials.
  • Its CVSS severity is critical (9.8).

What is CVE-2026-97040?

CVE-2026-97040 is a vulnerability in the Go Toolchain, specifically affecting the Cmd/go and Cmd/link components. It allows an attacker to inject arbitrary linker flags by crafting a ".syso" file that bypasses cgo flag validation during the linking process. The linker improperly parses the ".syso" file, allowing untrusted cgo metadata directives to be passed to the external linker without validation, potentially leading to malicious behavior during the build process.

The vulnerability arises from the linker checking only for recognized host object headers before parsing Go object headers. Recent updates have addressed this issue by rejecting unrecognized ".syso" files and ensuring that the ".syso" suffix is preserved when truncating long archive member names.

Potential Impact of CVE-2026-97040

  1. Arbitrary code execution: An attacker can inject malicious linker flags, potentially executing arbitrary code during the build process.

References

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities · Report a correction

CVSS V3.1

Score:
9.8
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Credit

RyotaK (https://ryotak.net) of GMO Flatt Security Inc.
.