Situation reportNo. 27Feed updated 11:06 PM UTC
  1. SysPaladin
  2. Vulnerabilities
  3. CVE-2026-97039

CVE-2026-97039Flag sanitization bypass via "#cgo pkg-config:" directives in cmd/go

Severity not rated

No summary yet. The facts and sources below are what the feeds reported.

Is it being exploited

No source we read reports it exploited, as of November 27, 2026. It is not in the CISA KEV catalog. EPSS puts the chance of exploitation in the next 30 days at 0.5%, higher than 42.8% of scored vulnerabilities.

Affected software

VendorProduct or packageVersions affectedFirst fixed version
-toolchainGo>= 1.27.0-0, < 1.27.41.27.4

Sources

  1. OSV Go: Flag sanitization bypass via "#cgo pkg-config:" directives in cmd/go

Other vulnerabilities in toolchain

No.CVEVulnerabilityCVSSEPSSStatusPublished
1CVE-2026-97040CriticalCgo directive injection via .syso files disguised as Go object files in cmd/go and cmd/linktoolchain-1%Critical
2CVE-2026-97036CriticalArbitrary code execution during build on darwin via "-l to_library" in cgo in cmd/gotoolchain-1%Critical
3CVE-2026-97042CriticalLinker flag injection via cgo_import_dynamic and PE DLL names in cmd/cgo, cmd/compile, and cmd/linktoolchain-1%Critical
4CVE-2026-97037CriticalLinker script injection via split -Wl, flags and Darwin or symbol linker flags in cgo in cmd/gotoolchain-1%Critical
5CVE-2026-97043CriticalUnexpected code execution via escaped quotes in //go:cgo_ldflag in cmd/go and cmd/compiletoolchain-1%Critical
6CVE-2026-97034CriticalArbitrary command execution via GCC spec files in cgo linker search directories in cmd/gotoolchain-1%Critical
7CVE-2026-97038CriticalArbitrary code execution via crafted .syso files and cgo linker input files in cmd/gotoolchain-1%Critical
8CVE-2026-97033CriticalUnexpected code execution via --sysroot, -target, -isysroot, -Wl,-syslibroot, and -x cgo flags in cmd/gotoolchain-1%Critical