BreachSpiderVerified, not vibes

CVE-2025-22867 in Apple products

High 7.5

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.

Affects 0 products from 3 vendors. Facts below cite their sources.

CVSS 3.17.5
EPSS1.1%
EPSS percentile65th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, full integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Apple — —
Darwin — —
Rpath — —

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-22867
BreachSpider IDBS-2025-GLOBAL-242867-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Published2025-02-06
Last modified2026-04-15
SourceNVD

Analysis AI-written, not human-reviewed

Building a Go module with CGO on Darwin using the Apple version of ld can lead to arbitrary code execution due to improper handling of @executable_path, @loader_path, or @rpath in #cgo LDFLAGS directives. This vulnerability affects go1.24rc2.

An attacker can craft a malicious Go module that, when built on a system using the Apple version of ld, can execute arbitrary code on the system. This is achieved by manipulating the #cgo LDFLAGS directive to include malicious paths using @executable_path, @loader_path, or @rpath.

Questions

What is CVE-2025-22867?

Building a Go module with CGO on Darwin using the Apple version of ld can lead to arbitrary code execution due to improper handling of @executable_path, @loader_path, or @rpath in #cgo LDFLAGS directives. This vulnerability affects go1.24rc2.

What is the CVSS score for CVE-2025-22867?

CVE-2025-22867 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N. EPSS: 1.1%.

Is CVE-2025-22867 actively exploited?

No confirmed active exploitation of CVE-2025-22867 as of 2026-05-30.

How do I remediate CVE-2025-22867?

Priority: HIGH.

What systems are affected by CVE-2025-22867?

CVE-2025-22867 affects Apple; Darwin; Rpath.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Apple","product":"EDS-518A","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-04-15.