CVE-2024-24787
MediumPublished
Arbitrary code execution during build on Darwin in cmd/go
- Published
- May 8, 2024
- Updated
- Feb 13, 2025
- Assigning CNA
- Go
- Evidence observed
- Aug 5, 2026
Primary CVSS
6.4/ 10Medium
nvd · CVSS 3.1
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H0.8%
Low · next 30 days
- Percentile
- 53.5%
- Model date
- Sep 21, 2026
EPSS is a statistical estimate, not a certainty or a measure of impact. Combine it with CVSS, KEV status, exposure and your environment.
Summary
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.
Sources
1CVE-2024-24787 Proof of Concept
Responsible use
Use vulnerability information only on systems you own or are authorized to test. Kitploit links to public research metadata and does not store exploit code or malicious payloads.