MTIby Motiontic
Colour theme
VulnerabilityCVE-2026-97036GO-2026-6855WID-SEC-W-2026-4370:CVE-2026-97036

Arbitrary code execution during build on darwin via "-l to_library" in cgo in cmd/go

Not on CISA KEV
  • Overview

Summary

On Darwin, building a malicious package that uses cgo could cause arbitrary code execution when using the Apple linker due to passing "-l to_library <path>" in a "#cgo LDFLAGS" directive. The Apple linker recombines the separated arguments "-l" and "to_library" into "-lto_library", which loads an

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)