CVE-2004-2687 in Apple Xcode and 1 more product
distcc 2.x, as used in XCode 1.5 and others, when not configured to restrict access to the server port, allows remote attackers to execute arbitrary commands via compilation jobs, which are executed by the server without authorization checks.
Affects 2 products from 2 vendors. Facts below cite their sources.
Remotely exploitable over the network.
Affected products and versions
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-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Official description
distcc 2.x, as used in XCode 1.5 and others, when not configured to restrict access to the server port, allows remote attackers to execute arbitrary commands via compilation jobs, which are executed by the server without authorization checks.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2004-2687 |
|---|---|
| BreachSpider ID | BS-2004-GLOBAL-174128-C |
| CVSS vector | AV:N/AC:M/Au:N/C:C/I:C/A:C |
| Published | 2004-12-31 |
| Last modified | 2026-06-16 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-16: CWE-16
Analysis AI-written, not human-reviewed
CVE-2004-2687 affects distcc 2.x versions used in XCode 1.5 and other applications, allowing remote attackers to execute arbitrary commands if the server port is not restricted.
The vulnerability arises from distcc's default configuration, which does not restrict access to the server port. Attackers can send malicious compilation jobs to the server, which are executed without proper authorization checks, leading to arbitrary command execution.
Questions
What is CVE-2004-2687?
CVE-2004-2687 affects distcc 2.x versions used in XCode 1.5 and other applications, allowing remote attackers to execute arbitrary commands if the server port is not restricted.
What is the CVSS score for CVE-2004-2687?
CVE-2004-2687 has CVSS 9.3 (Critical). Vector: AV:N/AC:M/Au:N/C:C/I:C/A:C. EPSS: 87.4%.
Is CVE-2004-2687 actively exploited?
Public exploit available for CVE-2004-2687. Exploitation risk elevated.
How do I remediate CVE-2004-2687?
Priority: IMMEDIATE.
What systems are affected by CVE-2004-2687?
CVE-2004-2687 affects Apple Xcode; Samba Samba.
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":"Xcode","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-16.