CVE-2025-22867 Details
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.
A vulnerability in the Go command line tool (cmd/go) has been identified, allowing arbitrary code execution during the build process on Darwin systems. This issue arises when a Go module that includes CGO is built using the Apple version of the linker (ld). The vulnerability is triggered by the use of special values such as @executable_path, @loader_path, or @rpath in a '#cgo LDFLAGS' directive. This problem is specific to Go version 1.24 release candidate 2.
Users can upgrade to Go 1.24 release candidate 3 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Feb 6, 2025CISA-ADP
Assessed Feb 6, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://go.dev/cl/646996 | [email protected] | Issue TrackingVendor |
| https://go.dev/issue/71476 | [email protected] | Issue TrackingTechnical DescriptionVendor |
| https://groups.google.com/g/golang-dev/c/TYzikTgHK6Y | [email protected] | Mailing ListRemedy |
| https://pkg.go.dev/vuln/GO-2025-3428 | [email protected] | AdvisoryBundleRemedyVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| golang/go | go1.24rc2 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 6, 2025 | CVE Modified | CISA-ADP |
| Feb 6, 2025 | New CVE Received | [email protected] |
Volerion