CVE-2024-24787Published May 8, 2024 · May 8Updated Jun 17
Arbitrary code execution during build on Darwin in cmd/go
Go toolchain cmd/go
Medium6.4
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Go toolchain cmd/go darwin |
| No fix yet |
Original description
On Darwin, building a Go module which contains CGO can trigger arbitrary code execution when using the Apple version of ld, due to usage of the -lto_library flag in a "#cgo LDFLAGS" directive.
From the CVE record · Go