Vulnerability Description
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.
CVSS Score
HIGH
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
FAQ
What is CVE-2025-22867?
CVE-2025-22867 is a vulnerability with a CVSS score of 7.5 (HIGH). 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...
How severe is CVE-2025-22867?
CVE-2025-22867 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2025-22867?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.