9.8

CVE-2026-97040: Cgo directive injection via .syso files disguised as Go object files in cmd/go and cmd/link

Awaiting analysis
AliasesDEBIAN-CVE-2026-97040GO-2026-6851UBUNTU-CVE-2026-97040
Published 11-11-2026Last modified 16-11-2026

Vulnerability summary

CVE-2026-97040 is a critical (CVSS 9.8) Improper Control of Generation of Code vulnerability in go toolchain cmd/go. EPSS estimates a 0.80% chance of exploitation in the next 30 days, higher than 57.8% of scored vulnerabilities.

Priority
Prioritisesevere

Severe, CVSS 9.8 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)

Source freshness unavailable

How is this decided?
CVSS score
9.8/10
010
Critical · v3.1 (CVE.org)
EPSS score
0.80%
0%100%
Low · Change unavailable
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 20 · Related 20

Timeline

  1. 11-11-2026
    PublishedVulnerability first disclosed.
  2. 16-11-2026
    Last modifiedVulnerability information updated.

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 metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

0.80%

Chance of exploitation in the next 30 days

Percentile

58%

Versus all other CVEs

30-day change

Change unavailable

Change unavailable

11-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu17 products
  • golang-1.10All versions (No fix recorded)
  • golang-1.13All versions (No fix recorded)
  • golang-1.14All versions (No fix recorded)
  • golang-1.16All versions (No fix recorded)
  • golang-1.17All versions (No fix recorded)
Debian4 products
  • golang-1.19All versions (No fix recorded)
  • golang-1.24All versions (No fix recorded)
  • golang-1.26All versions (No fix recorded) | < 1.26.11-1
  • golang-1.27All versions (No fix recorded) | < 1.27.4-1
Go toolchain2 products
  • cmd/go< 1.26.11 | ≥ 1.27.0-0, < 1.27.4
  • cmd/link< 1.26.11 | ≥ 1.27.0-0, < 1.27.4
Alpine1 product
  • go< 1.26.11-r0 | < 1.27.4-r0
Go1 product
  • toolchain≥ 1.27.0-0, < 1.27.4

5 vendors · 25 products

References

12 links
Show all 12 references