Skip to content
6.4 Medium

CVE-2024-24787 On Darwin, building a Go module which contains CGO can trigger arbitrary code execution when using the Apple version…

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.

Affected products and versions

Product Affected versions Fixed in
cmd/go 1.22 1.22.0-0 → < 1.22.3 1.22.3
cmd/go 1.21 earliest → < 1.21.10 1.21.10
Go 1.22 No fix stated
Go 1.21.0 No fix stated

References

Timeline

  1. Published
  2. Last modified
The 23 CVEs of cmd/go →
Track this CVE