CVE-2025-22867
Last modified
CVE-2025-22867 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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 estimates a 0.59% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-22867?
How severe is CVE-2025-22867?
How do I fix CVE-2025-22867?
Are you affected by CVE-2025-22867?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
