CVE-2026-97040 explained

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.

critical 9.8 / 10

Chance of being attacked in the next 30 days: 1%. Published 11 Nov 2026.

In plain English

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.

The plain-English version is written once the record settles.

The facts

Severity
critical (CVSS 9.8)
Exploited
not in CISA's catalogue
Chance of attack, 30 days
1% (higher than 58% of all records)
Published
11 Nov 2026
Last changed
17 Nov 2026
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Who is affected

The sources have not published affected products and versions yet.

What to do

  • Read the official record for the fixed version and update.
  • Plan the update within the week; back up first.
  • If someone else runs the software for you, send them this page.

Common questions

Am I affected by CVE-2026-97040?

The sources have not published which products and versions are affected yet. Check back, or read the official record.

Is CVE-2026-97040 being exploited?

No confirmed exploitation in CISA's catalogue. The chance of exploitation in the next 30 days is 1% (EPSS).

What should I do?

Read the vendor advisory for the fixed version and update. If someone else runs the software for you, send them this page.

Know when a vulnerability applies to your software

Declare what you run, or let the scan find it. We match every new record to your versions and say what to do.

Sources

We relay official sources and our own checks. What we can and cannot promise. Spotted a mistake?
.