Unauthenticated command injection in Xdebug remote debugging interface
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.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
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.
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.
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.
4 exploits validated by Mallory's analysis.
5 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.