CVE-2025-22867Published Feb 6, 2025 · Feb 6Updated Jun 17
Arbitrary code execution during build on darwin in cmd/go
Go toolchain cmd/go
High7.5
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 @executable_path, @loader_path, or @rpath special values in a "#cgo LDFLAGS" directive. This issue only affected go1.24rc2.
From the CVE record · Go