CVE-2025-22867

Arbitrary code execution during build on darwin in cmd/go

HIGH
7.5
CVSS Score
Published: February 6, 2025 at 05:09 PM UTC
Updated: June 17, 2026 at 08:50 AM UTC
1 product affected across 1 vendorGo

Using cmd/go by Go toolchain?

Get instant alerts when new vulnerabilities affect cmd/go - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 0.6%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

1.24.0-rc.2 ≤ v < 1.24.0-rc.31.24.0-rc.2
Affected range stops below 1.24.0-rc.3, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

SSVC — Action Prioritization

SSVCNo known exploitAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.5HIGHCISA-ADP
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
HIGH
Availability
NONE
Vector?

Quick Info

StatusDEFERRED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card