CVE-2025-22867
Arbitrary code execution during build on darwin in cmd/go
Published: Feb 6, 2025Updated: Feb 6, 2025 Sources: CVE List NVD
7.5CVSSHIGH
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 Vector Breakdown
Exploitability
AV:NAttack VectorNetwork
AC:LAttack ComplexityLow
PR:NPrivileges RequiredNone
UI:NUser InteractionNone
Scope
S:UScopeUnchanged
Impact
C:NConfidentialityNone
I:HIntegrityHigh
A:NAvailabilityNone
Affected Products
Exploitability
No known exploits, KEV entries, or remediation guidance available for this vulnerability yet.
References
https://go.dev/cl/646996
go.dev
https://go.dev/issue/71476
go.dev
https://groups.google.com/g/golang-dev/c/TYzikTgHK6Y
groups.google.com
and 1 more references View all →
Timeline
Published
Feb 6, 2025
Last Updated
Feb 6, 2025
Unlock Complete Vulnerability Intelligence
Get the full picture for CVE-2025-22867 and every CVE in our database. Create a free account — no credit card required.
Create Free AccountPlain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows