CVE-2024-24787

unknown
Published 2024-05-08 · Modified 2026-02-04
CVSS v3
CVSS v2
VIR risk

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.

Predictions

Exploit likelihood
20%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2024-24787.html

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2024-24787

OS impact

OSVersionStatusFixed in
debian debianbookwormfixed0
debian debianbullseyefixed0
suse slesaffected

Package impact

EcosystemPackageVulnerableFixed
golang Gotoolchain>=1.22.0-0,<1.22.31.21.10

References

Verify integrity in audit chain (admin only). AS-IS.