CVE-2024-24787 - CVE House
Back to Database
Status published Unknown CVE-2024-24787

Arbitrary code execution during build on Darwin in cmd/go

Vulnerability 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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2024-24787

Credits & Attribution

The following person or organization is credited with identifying this vulnerability, as recorded in the NVD database:

  • Juho Forsén (Mattermost)

Affected Vendor

Go toolchain

View all reports →

Affected Software

cmd/go
Vulnerable Versions:
0, 1.22.0-0

Timeline

Official Publish: May 8th, 2024
Last Modified: February 13th, 2025
Added to House: July 22nd, 2026

CVSS Vectors

No vector data available

Weaknesses (CWE)

No CWE data available

MITRE ATT&CK TTPs

No associated TTPs found for this vulnerability.