openwall.com
http://www.openwall.com/lists/oss-security/2024/05/08/3 CVE-2024-24787
MEDIUM
Arbitrary code execution during build on Darwin in cmd/go
Record summary
CVE-2024-24787 has a selected CVSS score of 6.4 (medium); EIP currently links 1 repository PoC.
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.
Description source: CVE List
Exploitation context
Available material
- Repository PoCs
- 1
CISA SSVC decision
ExploitationNone
AutomatableNo
Technical impactTotal
CISA Coordinator · SSVC 2.0.3 · Evaluated Jun 5, 2024 · Source: CVE List
Affected products and versions
2| Product | Source | Version range | Status |
|---|---|---|---|
Default status: unaffected | CVE List | Before 1.21.10 | affected |
| 1.22.0-0 to < 1.22.3 | affected | ||
Default status: affected | CVE List | 1.21.0 | affected |
| 1.22 | affected |
Proofs of concept
1Repository PoCs
GitHubLOURC0D3/CVE-2024-24787-PoCRepository PoCby LOURC0D3Stars: 5Not analyzed6 files
References
7go.dev
https://go.dev/cl/583815 go.dev
https://go.dev/issue/67119 groups.google.com
https://groups.google.com/g/golang-announce/c/wkkO4P9stm0 nvd.nist.gov
https://nvd.nist.gov/vuln/detail/CVE-2024-24787 pkg.go.dev
https://pkg.go.dev/vuln/GO-2024-2825 security.netapp.com
https://security.netapp.com/advisory/ntap-20240531-0006