Back
CVE-2024-24787
Arbitrary code execution during build on Darwin in cmd/go
Medium6.4EPSS 0.76%
- Published
- Updated
- Reserved
- Assigned by
- Go
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.
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 45% of all CVEs (6 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.
Weakness
- CWE 74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Affected products
- affected < 1.21.10
- affected 1.22.0-0 – < 1.22.3
References (6)
- 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)
- 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://trackcve.app/cve/CVE-2024-24787)Record last updated .