CVE-2024-24787

Arbitrary code execution during build on Darwin in cmd/go

Medium · published May 8, 2024

CVSS v3.1
6.4
EPSS
1%
Percentile
55.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
6.4 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00766 · 55.0th percentile
Published
2024-05-08T15:31Z
EPSS history
Timeline
  • 08 MAY 15:31Z
    Arbitrary code execution during build on Darwin in cmd/go
    cvelistv5