CVE-2024-24787: Arbitrary code execution during build on Darwin in cmd/go
Vulnerability summary
CVE-2024-24787 is a medium (CVSS 6.4) vulnerability in go toolchain cmd/go. EPSS estimates a 0.76% chance of exploitation in the next 30 days, higher than 55.3% of scored vulnerabilities.
Not severe (CVSS 6.4, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 7 · Related 448Showing 100 of 448.
Timeline
- 08-05-2024PublishedVulnerability first disclosed.
- 13-02-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
2 scores · 2 sources · 1 version- NVDNIST6.4MediumCVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.76%
Chance of exploitation in the next 30 days
Percentile
55%
Versus all other CVEs
30-day change
Decrease -0.01 pp
From 0.77% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeNo weakness data has been published for this record.
Affected systems
Known conditions: local access, administrative account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard200 products
- aactl< 0.4.12-r12
- actions-runner-controller-fips< 0.9.1-r1
- actions-runner-controller-fips-compat< 0.9.1-r1
- addon-resizer-fips< 1.8.21-r0
- addon-resizer-fips-compat< 1.8.21-r0
1 vendor · 200 products · Showing 200 of 597
References
12 links- go.dev/issue/67119REPORT