First published: Wed May 08 2024(Updated: )
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.
Credit: security@golang.org
Affected Software | Affected Version | How to fix |
---|---|---|
Go (Golang) language by Google |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2024-24787 is classified as a high severity vulnerability due to its potential to allow arbitrary code execution.
To mitigate CVE-2024-24787, it is recommended to update to a patched version of the Go programming language provided by Google.
CVE-2024-24787 affects users building Go modules that utilize CGO on Darwin systems.
CVE-2024-24787 is triggered by the use of the -lto_library flag in a '#cgo LDFLAGS' directive during the build process.
CVE-2024-24787 requires local access to exploit, hence it is not considered a remote vulnerability.