PoC Monitor
← All CVEs
CVE-2026-97036published 11 Nov 2026 03:13 UTCData: JSON · API

Go toolchain cmd/go

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

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 arbitrary LTO plugin dynamic library at link time. The go command now disallows "-l" followed by "to_library" in "#cgo LDFLAGS", rejects "-lazy_library", "-lazy_framework", "-load_hidden", "-library", and "-library-path", and checks recombined "-l" arguments against disallowed linker flags and patterns.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.8high · scored by CISA ADP · CWE-88
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

Go toolchain cmd/go
  • < 1.26.11
  • >= 1.27.0-0, < 1.27.4

Fixed in 1.26.11, 1.27.4

Mitigation

Upgrade cmd/go to 1.26.11 or 1.27.4 or later.

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published11 Nov 2026 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.