Back
CVE-2024-24787Arbitrary code execution during build on Darwin in cmd/go
- 6.4MediumCVSS base score
- 0.76%Exploitation in 30 daysEPSS · top 44% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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 -lto_library flag in a "#cgo LDFLAGS" directive.
Timeline
ID reserved
By Go
- 3 months later
· 3 months later
Published
- 9 months later
· 9 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| CISA-ADPADP (enrichment) | 3.1 | Medium6.4 | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Deferred | 3.1 | Medium6.4 | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.76% · top 44% of all CVEs (15 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.4.
Affected products
- affected < 1.21.10
- affected 1.22.0-0 – < 1.22.3
References
References6
- https://go.dev/issue/67119 (opens in a new tab)x_transferred
- https://go.dev/cl/583815 (opens in a new tab)x_transferred
- https://groups.google.com/g/golang-announce/c/wkkO4P9stm0 (opens in a new tab)x_transferred
- https://pkg.go.dev/vuln/GO-2024-2825 (opens in a new tab)x_transferred
- https://security.netapp.com/advisory/ntap-20240531-0006/ (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/05/08/3 (opens in a new tab)x_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2024-22164 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2024-24787)Record last updated .