CVE-2024-24787 in Apple products
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.
Affects 0 products from 2 vendors. Facts below cite their sources.
Requires local access, high complexity, high privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-24787 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-049614-M |
| CVSS vector | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H |
| Published | 2024-05-08 |
| Last modified | 2026-04-15 |
| Source | NVD |
Analysis AI-written, not human-reviewed
A medium severity vulnerability affects Apple systems (CVE-2024-24787). A proof-of-concept has been published. Review vendor advisories and apply patches during the next maintenance window.
Vulnerability details: 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 vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H.
Questions
What is CVE-2024-24787?
A medium severity vulnerability affects Apple systems (CVE-2024-24787). A proof-of-concept has been published. Review vendor advisories and apply patches during the next maintenance window.
What is the CVSS score for CVE-2024-24787?
CVE-2024-24787 has CVSS 6.4 (Medium). Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H. EPSS: 0.5%.
Is CVE-2024-24787 actively exploited?
No confirmed active exploitation of CVE-2024-24787 as of 2026-05-30.
How do I remediate CVE-2024-24787?
Priority: LOW.
What systems are affected by CVE-2024-24787?
CVE-2024-24787 affects Apple; Darwin.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Apple","product":"EDS-518A","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-04-15.