Vulnerability in Go Toolchain Cmd/go
CVE-2025-22867
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
EPSS exploit prediction
EPSS: 0.006 (49.1th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 49th percentile — 49.1% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.006 · newest: 0.006 · change: 0.000
Affected products
- Go Toolchain Cmd/go — versions 1.24.0-rc.2
References
Frequently asked questions
- What is CVE-2025-22867?
- CVE-2025-22867 is a high-severity vulnerability in Go Toolchain Cmd/go, classified under CWE-77: IMPROPER NEUTRALIZATION OF SPECIAL ELEMENTS USED IN A COMMAND ('COMMAND INJECTION'). CVSS score: 7.5/10. Published 2025-02-06.
- How severe is CVE-2025-22867?
- High severity. CVSS v3 base score is 7.5 out of 10.