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.
EPSS: 0.006 (46.7th percentile) — read the EPSS interpretation.
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.
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.