Vulnerability in Go Toolchain Cmd/go

CVE-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 flag in a "#cgo LDFLAGS" directive.

EPSS: 0.008 (52.5th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 6.4 (Medium). Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H.

Affected products

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2024-24787?
CVE-2024-24787 is a medium-severity vulnerability in Go Toolchain Cmd/go. CVSS score: 6.4/10. Published 2024-05-08.
How severe is CVE-2024-24787?
Medium severity. CVSS v3 base score is 6.4 out of 10.
Is CVE-2024-24787 known to be exploited?
6 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.