CVE-2024-24787
published 2024-05-08CVE-2024-24787: 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…
PriorityP432medium6.4CVSS 3.1
AVLACHPRHUINSUCHIHAH
EPSS
0.76%
50.6th percentile
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.
Affected
17 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | golang-1.15 | — | — |
| debian | golang-1.19 | — | — |
| go_toolchain | cmd_go | < 1.21.10 | 1.21.10 |
| go_toolchain | cmd_go | >= 1.22.0-0 < 1.22.3 | 1.22.3 |
| msrc | azl3_gcc_13.2.0-7_on_azure_linux_3.0 | — | — |
| msrc | azl3_golang_1.23.9-1_on_azure_linux_3.0 | — | — |
| msrc | azl3_golang_1.24.3-1_on_azure_linux_3.0 | — | — |
| msrc | azl3_python-tensorboard_2.16.2-6_on_azure_linux_3.0 | — | — |
| msrc | azl3_tensorflow_2.16.1-9_on_azure_linux_3.0 | — | — |
| msrc | cbl2_gcc_11.2.0-8_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_golang_1.17.13-2_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_golang_1.18.8-7_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_golang_1.22.7-3_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_msft-golang_1.22.3_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_msft-golang_1.24.1-2_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_python-tensorboard_2.11.0-3_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_tensorflow_2.11.1-2_on_cbl_mariner_2.0 | — | — |
CVSS provenance
nvdv3.16.4MEDIUMCVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
vendor_debian6.4LOW
vendor_msrc6.4MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Microsoft
Arbitrary code execution during build on Darwin in cmd/go
vendor_msrc·2024-05-14·CVSS 6.4
CVE-2024-24787 [MEDIUM] Arbitrary code execution during build on Darwin in cmd/go
Arbitrary code execution during build on Darwin in cmd/go
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
Go: Go
Customer Action Required: Yes
Remediation: CBL-Mariner Releases
Reference: https://learn.mic
Debian
CVE-2024-24787: golang-1.15 - On Darwin, building a Go module which contains CGO can trigger arbitrary code ex...
vendor_debian·2024·CVSS 6.4
CVE-2024-24787 [MEDIUM] CVE-2024-24787: golang-1.15 - On Darwin, building a Go module which contains CGO can trigger arbitrary code ex...
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.
Scope: local
bullseye: resolved
GHSA
GHSA-5fq7-4mxc-535h: 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_l
ghsa_unreviewed·2024-05-08
CVE-2024-24787 [MEDIUM] GHSA-5fq7-4mxc-535h: 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_l
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.
OSV
Arbitrary code execution during build on Darwin in cmd/go
osv·2024-05-08
CVE-2024-24787 Arbitrary code execution during build on Darwin in cmd/go
Arbitrary 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.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
http://www.openwall.com/lists/oss-security/2024/05/08/3https://go.dev/cl/583815https://go.dev/issue/67119https://groups.google.com/g/golang-announce/c/wkkO4P9stm0https://pkg.go.dev/vuln/GO-2024-2825https://security.netapp.com/advisory/ntap-20240531-0006/http://www.openwall.com/lists/oss-security/2024/05/08/3https://go.dev/cl/583815https://go.dev/issue/67119https://groups.google.com/g/golang-announce/c/wkkO4P9stm0https://pkg.go.dev/vuln/GO-2024-2825https://security.netapp.com/advisory/ntap-20240531-0006/
2024-05-08
Published