← Vulnerability feed

Vulnerability record · CVE-2004-2687 · published 31 December 2004

CVE-2004-2687: distcc 2.x Unauthenticated Remote Command Execution via Compilation Jobs

Apple · Xcode

distcc 2.x, including the version bundled with Xcode 1.5, executes compilation jobs received on its server port without authorization checks when access to that port is not restricted. A remote attacker can therefore run arbitrary commands on the distcc server. This is a high-severity, network-reachable flaw in a build-distribution service that is often exposed on internal networks.

9.3 CVSS 2.0 High EPSS 88% · top 0.2% CWE-16 · CWE-16
9.3CVSS 2.0 base score
88%EPSS exploitation probability, 30 days
NoNot in CISA KEV
2Affected product versions listed by NVD
12References, 2 tagged exploit
16 Jun 2026Last modified by NVD

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.

AV:N/AC:M/Au:N/C:C/I:C/A:C

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

critical priorityUnauthenticated remote command execution with a public exploit module and an EPSS score near 0.88 makes this an urgent exposure wherever distcc is reachable.

What it is

distcc 2.x, including the version bundled with Xcode 1.5, executes compilation jobs received on its server port without authorization checks when access to that port is not restricted. A remote attacker can therefore run arbitrary commands on the distcc server. This is a high-severity, network-reachable flaw in a build-distribution service that is often exposed on internal networks.

Impact

An attacker gains remote command execution with the privileges of the distcc daemon, typically the build user, allowing full compromise of the build host and any credentials or source code it handles.

Attack surface

Reached over the network via the distcc server port (TCP 3632 by default); the CVSS vector AV:N/Au:N indicates no authentication is required, and no user interaction is described.

Exploitation

A public Metasploit module (distcc_exec) is referenced, and EPSS is 0.88195 (99.8th percentile), indicating very high predicted exploitation activity; the CVE is not listed in CISA KEV.

What to do

  • Upgrade to a distcc release that enforces authorization on compilation jobs, or apply the vendor fix referenced in the distcc security advisory.
  • Restrict access to the distcc server port (default TCP 3632) with host firewalls or network ACLs so only trusted build clients can connect.
  • Bind distcc to trusted interfaces only and avoid exposing it to untrusted or flat internal networks.
  • Run the distcc daemon under a dedicated low-privilege account with no access to sensitive files or credentials.
  • Monitor for and remove any unauthorized distcc listeners on hosts where the service is not required.

Detection

  • Audit hosts for listening distcc services on TCP 3632 and verify which networks can reach them.
  • Inspect distcc logs and process trees for compilation jobs that spawn unexpected child processes or shell commands.
  • Alert on network connections to port 3632 from hosts outside the expected build-client set.
  • Hunt for known distcc exploit payload patterns or Metasploit distcc_exec artifacts in network and host telemetry.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2004-2687 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2017-7494Samba writable share library upload leads to remote code executionSamba versions from 3.5.0 up to (but not including) 4.6.4, 4.5.10 and 4.4.14 allow a malicious client to upload a shared library to a writable share …KEVEPSS 99%analysed8.0CVE-2025-48384Git config CRLF handling allows submodule path link-following code executionGit mishandles trailing carriage returns when writing config values, so a submodule path ending in CR is read back altered during submodule initializ…KEVEPSS 4.1%analysed5.5CVE-2020-1472Microsoft Netlogon elevation of privilege via vulnerable secure channel (Zerologon)CVE-2020-1472 is an elevation of privilege flaw in Microsoft's Netlogon Remote Protocol (MS-NRPC) where an attacker can establish a vulnerable Netlog…KEVEPSS 99%analysed10.0CVE-2015-0240Samba Netlogon ServerPasswordSet RPC uninitialized pointer code executionSamba's smbd Netlogon server frees an uninitialized stack pointer when handling crafted ServerPasswordSet RPC requests. This memory corruption flaw a…EPSS 88%analysed10.0CVE-2012-1182Samba RPC code generator array length validation flaw allows remote code executionThe RPC code generator in Samba 3.x before 3.4.16, 3.5.x before 3.5.14, and 3.6.x before 3.6.4 validates an array length inconsistently with how it v…EPSS 74%analysed10.0CVE-2007-2446Samba smbd NDR parsing heap buffer overflows allow remote code executionSamba 3.0.0 through 3.0.25rc3 contains multiple heap-based buffer overflows in the NDR parsing code of smbd, reachable through crafted MS-RPC request…EPSS 78%analysed10.0CVE-2004-0882Samba vulnerabilityBuffer overflow in the QFILEPATHINFO request handler in Samba 3.0.x through 3.0.7 may allow remote attackers to execute arbitrary code via a TRANSACT…EPSS 14%

Source: NIST National Vulnerability Database (record CVE-2004-2687), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.