MTIby Motiontic
Colour theme
VulnerabilityCVE-2026-97043GO-2026-6848WID-SEC-W-2026-4370:CVE-2026-97043

Unexpected code execution via escaped quotes in //go:cgo_ldflag in cmd/go and cmd/compile

Not on CISA KEV
  • Overview

Summary

Building a malicious package that uses cgo could bypass "#cgo LDFLAGS" validation and cause unexpected code execution at build time, or cause the go command to panic, via crafted quoting in "//go:cgo_ldflag" directives. When "cmd/cgo" generates "_cgo_gotypes.go", it quotes each "#cgo LDFLAGS"

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)