CVE-2025-22867

Arbitrary code execution during build on darwin in cmd/go

High · published February 6, 2025

CVSS v3.1
7.5
EPSS
1%
Percentile
50.3
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 @executable_path, @loader_path, or @rpath special values in a "#cgo LDFLAGS" directive. This issue only affected go1.24rc2.

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00645 · 50.3th percentile
Published
2025-02-06T17:09Z
EPSS history
Timeline
  • 06 FEB 17:09Z
    Arbitrary code execution during build on darwin in cmd/go
    cvelistv5