CVE-2025-22867
High
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.
SeverityHigh
CVSS7.5
Exploit probability—
ProductToolchain
PublishedFeb 6, 2025
First seenFeb 6, 2025
Weakness typeCWE-77Command injection
How to fix
Update
- toolchain1.24.0-rc.3 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| toolchainGo | 1.24.0-rc.2 ≤ v < 1.24.0-rc.3 | 1.24.0-rc.3 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.