CVE-2024-24787
mediumpriority · track · 10EPSS 0.008 · 55 %ileexploit · PoCDEEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (1)
Public proof-of-concept and weaponised exploit code.
- LOURC0D3/CVE-2024-24787-PoCCVE-2024-24787 Proof of ConceptPoC · poc_in_github
affected products (26)
Products and version ranges known to be affected.
- Red Hat OpenShift Kube Descheduler Operator 5all versionscert_bundDEcpe:/a:redhat:openshift:kube_descheduler_operator_5
- Xerox FreeFlow Print Server v9 for Solarisall versionscert_bundDEcpe:/a:xerox:freeflow_print_server:v9_for_solaris
advisories (4)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2024-1071Golang Go: Mehrere SchwachstellenDeutsch2024-05-07csaf · cert_bundDE
Ein entfernter anonymer Angreifer kann mehrere Schwachstellen in Golang Go ausnutzen, um beliebigen Code auszuführen oder einen 'Denial of Service'-Zustand zu verursachen.
- BIT-golang-2024-24787Arbitrary code execution during build on Darwin in cmd/go2024-05-14vendor · osvUS
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.
- CGA-67wh-9fxr-2w4p2024-06-06vendor · osvUS
- GO-2024-2825Arbitrary code execution during build on Darwin in cmd/go2024-05-08vendor · osvUS
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.
also known as (6)
Other names and identifiers for this entity.
- CNNVD-202405-1775cnnvd
- EUVD-2024-22164enisa_euvd
- GHSA-5fq7-4mxc-535henisa_euvd
- BIT-golang-2024-24787osv
- GHSA-5fq7-4mxc-535hosv
- GO-2024-2825osv
sources
Which sources assert this record, and when.
references (18)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2024-24787/cnnvd
- https://go.dev/cl/583815cnnvd
- https://go.dev/issue/67119cnnvd
- https://groups.google.com/g/golang-announce/c/wkkO4P9stm0cnnvd
- https://pkg.go.dev/vuln/GO-2024-2825cnnvd
- https://vigilance.fr/vulnerability/Go-code-execution-via-Module-CGO-Id-Apple-Version-44234cnnvd
- http://www.openwall.com/lists/oss-security/2024/05/08/3enisa_euvd
- https://go.dev/cl/583815enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan