Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2015-10141: Unauthenticated command injection in Xdebug remote debugging interface

Published Jul 23, 2025 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.3Critical · v4
EPSS17.9%97th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
IdentifiersCVE-2015-10141CWE-78 · Improper Neutralization of Special…

CVE-2015-10141 is an unauthenticated OS command injection vulnerability in Xdebug 2.5.5 and earlier. When Xdebug remote debugging is enabled, the extension listens on TCP port 9000 and accepts debugger protocol commands without authentication. An attacker able to reach this interface can send a crafted eval command to cause arbitrary PHP code execution within the target PHP process. That PHP code can then invoke dangerous system-level functions such as system() or passthru(), resulting in operating system command execution on the host in the security context of the web server or PHP process user.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows an unauthenticated remote attacker to execute arbitrary PHP code and, through PHP system-execution primitives, arbitrary OS commands. This can lead to full compromise of the affected host within the privileges of the web server user, including application takeover, access to sensitive data available to the PHP process, modification of application content, installation of persistence mechanisms accessible to that account, and use of the compromised service as a foothold for further lateral movement or privilege escalation.

Mitigation

If you can’t patch tonight, do this now.

Disable Xdebug remote debugging where possible. Prevent untrusted network access to the Xdebug listener on port 9000 using host-based firewalls, network ACLs, container/network policy, or binding the service only to trusted interfaces. Avoid exposing development or debugging services in production environments. As a defense-in-depth measure, disable or restrict dangerous PHP functions such as system() and passthru() where operationally feasible, though this does not remove the underlying arbitrary PHP code execution condition.

Remediation

Patch, then assume compromise.

Upgrade Xdebug to a version that is not affected by CVE-2015-10141. In addition, review Xdebug configuration to ensure remote debugging is not exposed to untrusted networks. If remote debugging is not required, disable it entirely. If it is required, restrict access to the debugger listener so that only trusted developer systems can connect.

Public exploits

Exploits

4 exploits validated by Mallory's analysis.

View more in app →
xdebug_unauth_exec.rbThis repository contains a single Metasploit module (modules/exploits/unix/http/xdebug_unauth_exec.rb) that exploits an unauthenticated OS command execution vulnerability in Xdebug (CVE-2015-10141), affecting versions 2.5.5 and below. The exploit works by sending a specially crafted HTTP request to a web application with Xdebug enabled, then interacting with the Xdebug debugger port (default 9000) to execute arbitrary PHP code. The module is highly weaponized, supporting customizable payloads (defaulting to php/meterpreter/reverse_tcp) and providing a reverse shell or Meterpreter session upon successful exploitation. The code is written in Ruby and is designed to be used within the Metasploit framework. The only file present is the exploit module itself, which includes all necessary logic for detection, exploitation, and payload delivery. Key fingerprintable endpoints include the web application path (default /index.php) and the Xdebug debugger port (default 9000/tcp).Disclosed Sep 17, 2017 · Framework: metasploit · ruby · networkWeaponizedCVE-2015-10141This repository contains a Python exploit script (CVE-2015-10141.py) targeting CVE-2015-10141, a remote code execution vulnerability in Xdebug (<=2.5.5), a PHP debugging extension. The exploit works by abusing the unauthenticated debugger protocol on port 9000, which allows arbitrary PHP code execution when remote debugging is enabled. The script takes a target URL and a local host IP as arguments. It triggers the vulnerability by sending a specially crafted HTTP request to the target, causing the target's Xdebug instance to connect back to the attacker's machine on port 9000. The script then provides an interactive shell-like interface, allowing the attacker to send system commands to the target and receive their output. The repository includes a README with usage instructions, references, and a requirements.txt listing Python dependencies. The main exploit file is self-contained and does not rely on any external exploit frameworks. The attack vector is network-based, requiring the attacker to be able to reach the target's web server and receive incoming connections on port 9000. The exploit is operational and provides a working remote shell if the target is vulnerable.D3Ext · Disclosed Jul 4, 2022 · python · networkOperationalCVE-2015-10141Repository contains a small standalone Python exploit PoC for CVE-2015-10141 and a README describing the vulnerability. The main file, exploit.py, implements an attacker-side Xdebug DBGp listener and an HTTP trigger mechanism. It base64-encodes attacker-supplied PHP into an 'eval -i 1 -- <base64>\x00' DBGp command, waits for the vulnerable target to connect back to the listener, sends the eval request, and parses CDATA/base64-wrapped results from the Xdebug response. The exploit supports two primary modes: direct arbitrary PHP/command execution and reverse-shell delivery. In reverse-shell mode it starts a listener on attacker-specified LHOST/LPORT, generates multiple PHP reverse-shell payload attempts, and iterates through them until a shell is established. The code also supports optional spoofing-related headers (X-Forwarded-For and Client-IP) when triggering the target URL. Overall, this is a real operational PoC for unauthenticated remote code execution against vulnerable Xdebug deployments exposed through a reachable web application and remote debugging callback path.K3ysTr0K3R · Disclosed Jun 17, 2026 · markdown · python · network · webOperationalPoC-CVE-2015-10141-XdebugThis repository contains a proof-of-concept exploit for CVE-2015-10141, a remote code execution vulnerability in Xdebug versions 2.5.5 and earlier. The main exploit file, 'exploit.py', is a Python script that establishes a listener on TCP port 9000 and initiates a debugging session with the target Xdebug instance. By leveraging the unauthenticated Xdebug debugging protocol, the script allows the attacker to send base64-encoded PHP system() commands, effectively providing an interactive shell for arbitrary command execution on the target server. The exploit requires the target to have Xdebug remote debugging enabled and accessible. The repository is structured with a single exploit script, a README with usage instructions and vulnerability details, and a license file. No detection scripts or fake code are present; the exploit is functional and demonstrates the vulnerability as described.n0m4d22 · Disclosed Aug 17, 2025 · python · networkPoC
FAQ

Frequently asked questions

Is CVE-2015-10141 exploited in the wild?
As of Sep 25, 2026, Mallory has no reports of CVE-2015-10141 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2015-10141?
Yes. Mallory tracks 4 public exploits or proofs of concept for CVE-2015-10141, the earliest disclosed Sep 17, 2017.
Is there a patch for CVE-2015-10141?
Upgrade Xdebug to a version that is not affected by CVE-2015-10141. In addition, review Xdebug configuration to ensure remote debugging is not exposed to untrusted networks.
How severe is CVE-2015-10141?
CVE-2015-10141 has a CVSS v4 score of 9.3 (Critical) and an EPSS score of 17.9% (97th percentile) as of Sep 25, 2026.
Activity feed

Recent activity

5 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.

View more in app →

No news coverage yet. Advisories and community discussion only.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity5Community discussion across Reddit, Mastodon, and other social sources.