CVE-2025-22867
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Summary
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.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| Go toolchain | cmd/go | 1.24.0-rc.2 < 1.24.0-rc.3 | affected |
Weaknesses
- CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
ADP Enrichment
CISA ADP Vulnrichment
- SSVC:
- Exploitation: none
- Automatable: yes
- Technical Impact: partial
References
- https://go.dev/cl/646996
- https://go.dev/issue/71476
- https://groups.google.com/g/golang-dev/c/TYzikTgHK6Y
- https://pkg.go.dev/vuln/GO-2025-3428
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.