CVE-2024-24787
MEDIUM 6.4CVSS 3.1Arbitrary code execution during build on Darwin in cmd/go
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.
- Published
- 8 May 2024
- Last modified
- 17 Jun 2026
- Assigned by
- security@golang.org
- NVD status
- Deferred
- Also known as
- BIT-golang-2024-24787GO-2024-2825
- Sources
- NVDJSONOSV GO-2024-2825JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 6.4 | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | toolchain | < 1.21.10; >= 1.22.0-0, < 1.22.3 | 1.21.10, 1.22.3 |
References
- http://www.openwall.com/lists/oss-security/2024/05/08/3
- https://go.dev/cl/583815 · FIX
- https://go.dev/issue/67119 · REPORT
- https://groups.google.com/g/golang-announce/c/wkkO4P9stm0 · WEB
- https://pkg.go.dev/vuln/GO-2024-2825
- https://security.netapp.com/advisory/ntap-20240531-0006/
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 8 May 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 8 May 2024)