6.4Media

CVE-2024-24787Arbitrary code execution during build on Darwin in cmd/go

Go toolchain cmd/go; golang go Publicada: (hace 2 años)

Descripción

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.

Datos: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Se publican tal como los indican las fuentes, en inglés.

Productos y versiones afectados

FabricanteProductoVersiones
Go toolchain cmd/go < 1.21.10, 1.22.0-0 – < 1.22.3
golang go 1.21.0, 1.22

Referencias y parches