On Darwin, building a Go module which contains CGO can...
High severity
Unreviewed
Published
Feb 6, 2025
to the GitHub Advisory Database
•
Updated Feb 7, 2025
Description
Published by the National Vulnerability Database
Feb 6, 2025
Published to the GitHub Advisory Database
Feb 6, 2025
Last updated
Feb 7, 2025
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.
References