CVE-2024-24787: Arbitrary code execution during build on Darwin in cmd/go
Arbitrary code execution during build on Darwin in cmd/go
Other sources
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 -ltolibrary flag in a "#cgo LDFLAGS" directive.
— NVD
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2024-24787?
CVE-2024-24787 is classified as a high severity vulnerability due to its potential to allow arbitrary code execution.
How do I fix CVE-2024-24787?
To mitigate CVE-2024-24787, it is recommended to update to a patched version of the Go programming language provided by Google.
Who is affected by CVE-2024-24787?
CVE-2024-24787 affects users building Go modules that utilize CGO on Darwin systems.
What conditions trigger CVE-2024-24787?
CVE-2024-24787 is triggered by the use of the -lto_library flag in a '#cgo LDFLAGS' directive during the build process.
Can CVE-2024-24787 be exploited remotely?
CVE-2024-24787 requires local access to exploit, hence it is not considered a remote vulnerability.