VulnerabilityCVE-2026-97040GO-2026-6851WID-SEC-W-2026-4370:CVE-2026-97040
Cgo directive injection via .syso files disguised as Go object files in cmd/go and cmd/link
Not on CISA KEV
Summary
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
See the full record, free
- Every source, score and reference in one place
- Timeline and related records
- Watch an entry and get an alert when it changes
Sources and credits
- BSI CERT-Bund Source: BSI CERT-Bund
- CISA Vulnrichment Source: CISA Vulnrichment
- CVE List Source: CVE Program (cve.org)