CVE Database
/

CVE-2024-24787

Back to search

CVE-2024-24787

Published: May 8, 2024

Modified: Feb 13, 2025

PUBLISHED

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.

VendorProductVersions

Go toolchain

cmd/go

affected
0 - < 1.21.10
affected
1.22.0-0 - < 1.22.3

Security Training

Train your team to recognize and prevent security threats with our comprehensive security awareness program.

Start Training

Vulnerability Scanning

Discover vulnerabilities in your applications and infrastructure before attackers do.

Scan Now