Arbitrary code execution during build on Darwin in cmd/go
Priority LOW 32Published · Updated
Key facts
- Attack vector
- Local
- Privileges required
- High
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA.
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.
Why it matters now
Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0076 55th percentileScored 2026-11-07
Fix Fixed cmd/go (Go toolchain): 1.21.10, 1.22.3
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Go standard library | cmd/go | before 1.21.10; 1.22.0-0 to before 1.22.3 | 1.21.10, 1.22.3 | Patch available | CNA |
- cmd/go VendorGo standard library Affected before 1.21.10; 1.22.0-0 to before 1.22.3 Fixed in 1.21.10, 1.22.3 Patch available CNA
CPE names CISA-ADP · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:golang:go:1.21.0:-:*:*:*:*:*:* | 1.21.0 | — | Go standard library |
- cpe:2.3:a:golang:go:1.21.0:-:*:*:*:*:*:* Versions 1.21.0 — ·Go standard library
Remediation
- Fix · CNA cmd/go (Go toolchain) Fixed in 1.21.10, 1.22.3
Timeline
- 2026-10-02 Threatist record created from CVE-2024-24787
- 2026-10-03 Alias added: GHSA-5fq7-4mxc-535h
References
More Go standard library vulnerabilities
- TI-2020-00578 Improper certificate validation in Microsoft Windows KEVCVSS 3.1HIGH 8.1
- TI-2023-23979 The HTTP/2 protocol allows a denial of service (server resource consumption) because… KEVCVSS 3.1HIGH 7.5
- TI-2023-24278 HTTP/2 CONTINUATION flood in net/http CVSS 3.1HIGH 7.5
- TI-2018-05208 The "go get" implementation in Go 1.9.4, when the -insecure command-line option is used… CVSS 3.1HIGH 8.8
- TI-2024-16309 Panic when parsing invalid palette-color images in golang.org/x/image CVSS 3.1HIGH 7.5
- TI-2022-20112 Request smuggling due to improper request handling in golang.org/x/net/http2/h2c CVSS 3.1HIGH 7.5
Sources
- CVE-2024-24787 · CVE Program
- CVE-2024-24787 · NVD
- FIRST EPSS
- GHSA-5fq7-4mxc-535h · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences