7.5

CVE-2025-22867: Arbitrary code execution during build on darwin in cmd/go

Deferred
AliasesGO-2025-3428BIT-golang-2025-22867
Published 06-02-2025Last modified 06-02-2025

Vulnerability summary

CVE-2025-22867 is a high (CVSS 7.5) vulnerability in go toolchain cmd/go. EPSS estimates a 0.65% chance of exploitation in the next 30 days, higher than 50.9% of scored vulnerabilities.

Priority
Prioritisesevere

Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 03-11-2026)

Source freshness unavailable

How is this decided?
CVSS score
7.5/10
010
High · v3.1 (CVE.org)
EPSS score
0.65%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 4 · Related 4

Timeline

  1. 06-02-2025
    PublishedVulnerability first disclosed.
  2. 06-02-2025
    Last modifiedVulnerability information updated.

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 metrics

2 scores · 2 sources · 1 version

EPSS trend

Probability

0.65%

Chance of exploitation in the next 30 days

Percentile

51%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.65% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

No weakness data has been published for this record.

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Go1 product
  • toolchain≥ 1.24.0-rc.2, < 1.24.0-rc.3
Go toolchain1 product
  • cmd/go≥ 1.24.0-rc.2, < 1.24.0-rc.3

2 vendors · 2 products

References

4 links