{"id":"CVE-2004-2687","published":"2007-09-23T23:00:00Z","modified":"2024-09-16T18:40:06Z","title":"distcc 2.x, as used in XCode 1.5 and others, when not configured to restrict access to the server port, allows remote…","vendor":null,"product":null,"tier":"core","eol":null,"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"The flaw is in distcc 2.x, the distributed compilation tool shipped with XCode 1.5 and other products, where the server component executes compilation jobs without authorization checks. The attack requires that the distcc server port be reachable over the network, which occurs when the service is not configured to restrict access, and in that case a remote attacker can execute arbitrary commands by submitting crafted compilation jobs.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:16:37Z"},"cvss":null,"epss":{"score":0.87359,"percentile":0.99755,"date":"2026-10-31","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":1,"pulses":[{"name":"Python: OVSAgentServer Document (autofilled name)","url":"https://otx.alienvault.com/pulse/6660c1268a1f430e17236b55","created":"2024-06-05"}],"provenance":"machine"},"cwes":[],"references":[{"url":"http://archives.neohapsis.com/archives/bugtraq/2005-03/0183.html","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"http://www.osvdb.org/13378","tags":["vdb-entry","x_refsource_OSVDB"]},{"url":"http://lists.samba.org/archive/distcc/2004q3/002562.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.metasploit.org/projects/Framework/exploits.html#distcc_exec","tags":["x_refsource_MISC"]},{"url":"http://distcc.samba.org/security.html","tags":["x_refsource_CONFIRM"]},{"url":"http://lists.samba.org/archive/distcc/2004q3/002550.html","tags":["mailing-list","x_refsource_MLIST"]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2004-2677","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2004-2677","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[{"id":9915,"url":"https://www.exploit-db.com/exploits/9915","title":"DistCC Daemon - Command Execution (Metasploit)","type":"remote","platform":"multiple","date":"2002-02-01","verified":true,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":1,"earliest":"2002-02-01"},"pocGithub":{"count":6,"skipped":1,"earliest":"2021-07-01","earliestUrl":"https://github.com/h3x0v3rl0rd/distccd_rce_CVE-2004-2687","repos":[{"name":"h3x0v3rl0rd/distccd_rce_CVE-2004-2687","url":"https://github.com/h3x0v3rl0rd/distccd_rce_CVE-2004-2687","stars":2,"created":"2021-07-01"},{"name":"k4miyo/CVE-2004-2687","url":"https://github.com/k4miyo/CVE-2004-2687","stars":1,"created":"2021-08-28"},{"name":"germarr93/CyberSecurity-Pentest-Lab","url":"https://github.com/germarr93/CyberSecurity-Pentest-Lab","stars":1,"created":"2026-09-11"},{"name":"nulltrace1336/Metasploitable-2-Distcc-Exploit-via-Kali-Linux-CVE-2004-2687","url":"https://github.com/nulltrace1336/Metasploitable-2-Distcc-Exploit-via-Kali-Linux-CVE-2004-2687","stars":0,"created":"2025-12-23"},{"name":"aish19siddiqua-commits/mtechweek_04","url":"https://github.com/aish19siddiqua-commits/mtechweek_04","stars":0,"created":"2026-08-22"}]},"metasploit":[{"name":"DistCC Daemon Command Execution","module":"exploit/unix/misc/distcc_exec","type":"exploit","disclosureDate":"2002-02-01","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/misc/distcc_exec.rb"}],"nuclei":[{"id":"CVE-2004-2687","name":"Distccd v1 - Remote Code Execution","severity":"high","path":"network/cves/2004/CVE-2004-2687.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/network/cves/2004/CVE-2004-2687.yaml"}],"first":{"date":"2002-02-01","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/9915"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2002-02-01","kind":"exploit-public","label":"First public exploit: Exploit-DB (EDB-9915); later: Metasploit 2002-02-01, PoC-in-GitHub 2021-07-01","url":"https://www.exploit-db.com/exploits/9915","provenance":"source"},{"date":"2007-09-23","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2004-2687","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"Exploit-DB","daysToKev":null},"priority":{"score":25.6,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.95,"detail":"percentile 0.9976"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 Exploit-DB entry; 6 PoC-in-GitHub repos; 1 Metasploit module; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":0.68,"detail":"1 pulse"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}