Command Injection in Apache HTTP Server for Win32 CGI Argument Handling
CVE-2002-0061 is an OS command injection vulnerability in Apache HTTP Server for Win32 before 1.3.24 and in the 2.0.x branch before 2.0.34-beta. The flaw affects handling of arguments passed to batch and command-shell CGI programs such as .bat and .cmd scripts. Apache forwards attacker-supplied CGI arguments containing shell metacharacters, specifically the pipe character, to the Windows shell interpreter without proper neutralization or filtering. Because the input is interpreted by the shell rather than treated as inert data, a remote attacker can append and execute arbitrary commands in the context of the Apache process.
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 unauthenticated remote command execution on the vulnerable Windows server. Commands run with the privileges of the Apache service account. On affected Windows NT, 2000, and XP deployments, this may result in execution with SYSTEM-level privileges when Apache is configured to run under that account; on Windows 9x and Me, exploitation can yield full system compromise. This can enable complete takeover of the host, unauthorized access to or modification of data, installation of additional malware or tooling, service disruption, and use of the server as a pivot for further activity.
If you can’t patch tonight, do this now.
As a compensating control, run Apache under a low-privilege account rather than LocalSystem on Windows NT-family systems, and tightly restrict that account's permissions to reduce post-exploitation impact. Limit or disable execution of batch and command-shell CGI scripts where not strictly required, and avoid invoking shell interpreters for web-exposed functionality. Additional hardening such as minimizing CGI exposure and restricting reachable script handlers can further reduce risk until patching is completed.
Patch, then assume compromise.
Upgrade Apache HTTP Server to version 1.3.24 or later in the 1.3 branch, or to 2.0.34-beta or later in the 2.0.x branch, where the vulnerable CGI argument handling was corrected. Ensure all Win32 Apache instances exposed to untrusted requests are updated to a fixed release.
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.