PatchSiren cyber security CVE debrief
CVE-2026-97040 Go toolchain CVE debrief
A vulnerability in the Go toolchain, specifically in the `cmd/go` and `cmd/link` components, allows for cgo directive injection via `.syso` files disguised as Go object files. This issue arises because the linker checks for recognized host object headers before falling through to Go object parsing, allowing untrusted cgo metadata directives embedded in `.syso` files to be passed to the external linker without validation.
- Vendor
- Go toolchain
- Product
- cmd/go
- CVSS
- CRITICAL 9.8
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-11-11
- Original CVE updated
- 2026-11-16
- Advisory published
- 2026-11-11
- Advisory updated
- 2026-11-16
Who should care
Defenders responsible for Go toolchain deployments, particularly those using versions 1.26.11 and below, and 1.27.4 and below, should assess exposure and verify configurations to prevent potential exploitation.
Why it matters
Defenders should prioritize assessing exposure in Go toolchain deployments, particularly for versions 1.26.11 and below, and 1.27.4 and below, and verify if their configurations allow for untrusted `.syso` files to be processed.
- Potential for arbitrary linker flag injection
- Possible bypass of cgo flag validation
- Need for verification of affected versions and configurations
- Priority for updating to fixed versions
Technical summary
The vulnerability allows for cgo directive injection via `.syso` files disguised as Go object files in `cmd/go` and `cmd/link`. The linker only checks for recognized host object headers before falling through to Go object parsing, allowing untrusted cgo metadata directives to be passed to the external linker without validation. This issue arises because the linker checks for recognized host object headers before falling through to Go object parsing, allowing untrusted cgo metadata directives embedded in `.syso` files to be passed to the external linker without validation. A `.syso` file beginning with a `go object` header was parsed as a Go compiler object, allowing untrusted cgo metadata directives (such as `c
Defensive priority
Defenders should prioritize assessing exposure in Go toolchain deployments, particularly for versions 1.26.11 and below, and 1.27.4 and below, and verify if their configurations allow for untrusted `.syso` files to be processed.
Recommended defensive actions
- Assess exposure in Go toolchain deployments
- Verify configurations for untrusted `.syso` file processing
- Update to version 1.26.11 or 1.27.4 or later if possible
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
Evidence notes
The CVE record and source item provide details on the vulnerability, including its description, affected versions, and references to supplemental sources. The vulnerability allows for cgo directive injection via `.syso` files disguised as Go object files in `cmd/go` and `cmd/link`. Defenders should verify configurations to prevent potential exploitation and assess exposure in Go toolchain deployments, particularly for versions 1.26.11 and below, and 1.27.4 and below. Evidence from the CVE record and source item indicates that the `.sy
Sources and references
Verified primary and authoritative sources
-
CVE-2026-97040 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-97040
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-97040 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-97040
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Cgo directive injection via .syso files disguised as Go object files in cmd/go and cmd/link
Unverified legacy reference
URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/97xxx/CVE-2026-97040.json
cve_program_cvelist_v5
-
Source reference
Unverified legacy reference
URL: https://go.dev/cl/862153
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://go.dev/issue/82570
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://pkg.go.dev/vuln/GO-2026-6851
Supplemental source
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.