// For flags

CVE-2025-22867

Arbitrary code execution during build on darwin in cmd/go

Severity Score

7.5
*CVSS v3.1

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

0
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

Attend
*SSVC
Descriptions

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.

*Credits: Juho Forsén of Mattermost
CVSS Scores
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None
Attack Vector
Network
Attack Complexity
Low
Authentication
None
Confidentiality
Partial
Integrity
Partial
Availability
Partial
* Common Vulnerability Scoring System
SSVC
  • Decision:Attend
Exploitation
None
Automatable
Yes
Tech. Impact
Partial
* Organization's Worst-case Scenario
Timeline
  • 2025-01-08 CVE Reserved
  • 2025-02-06 CVE Published
  • 2025-02-06 CVE Updated
  • 2025-02-07 EPSS Updated
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
  • ---------- First Exploit
CWE
CAPEC
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
Go Toolchain
Search vendor "Go Toolchain"
Cmd/go
Search vendor "Go Toolchain" for product "Cmd/go"
>= 1.24.0-rc.2 < 1.24.0-rc.3
Search vendor "Go Toolchain" for product "Cmd/go" and version " >= 1.24.0-rc.2 < 1.24.0-rc.3"
en
Affected