CVE-2024-24787

MEDIUM

Go module <CGO - RCE

Title source: llm
STIX 2.1

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.

Exploits (1)

nomisec WORKING POC 5 stars
by LOURC0D3 · poc
https://github.com/LOURC0D3/CVE-2024-24787-PoC

Scores

CVSS v3 6.4
EPSS 0.0271
EPSS Percentile 86.0%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact total

Details

Status published
Products (2)
Go toolchain/cmd/go < 1.21.10
Go toolchain/cmd/go 1.22.0-0 - 1.22.3
Published May 08, 2024
Tracked Since Feb 18, 2026