CVE-2002-2309
Description
php.exe in PHP 3.0 through 4.2.2, when running on Apache, does not terminate properly, which allows remote attackers to cause a denial of service via a direct request without arguments.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
39cpe:2.3:a:php:php:3.0.1:*:*:*:*:*:*:*+ 38 more
- cpe:2.3:a:php:php:3.0.1:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:3.0.10:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:3.0.11:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:3.0.12:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:3.0.13:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:3.0.14:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:3.0.15:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:3.0.16:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:3.0.17:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:3.0.18:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:3.0.2:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:3.0.3:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:3.0.4:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:3.0.5:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:3.0.6:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:3.0.7:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:3.0.8:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:3.0.9:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:4.0:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:4.0.1:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:4.0.1:patch1:*:*:*:*:*:*
- cpe:2.3:a:php:php:4.0.1:patch2:*:*:*:*:*:*
- cpe:2.3:a:php:php:4.0.2:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:4.0.3:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:4.0.3:patch1:*:*:*:*:*:*
- cpe:2.3:a:php:php:4.0.4:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:4.0.5:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:4.0.6:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:4.0.7:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:4.0.7:rc1:*:*:*:*:*:*
- cpe:2.3:a:php:php:4.0.7:rc2:*:*:*:*:*:*
- cpe:2.3:a:php:php:4.0.7:rc3:*:*:*:*:*:*
- cpe:2.3:a:php:php:4.1.0:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:4.1.1:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:4.1.2:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:4.2.0:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:4.2.1:*:*:*:*:*:*:*
- cpe:2.3:a:php:php:4.2.2:*:*:*:*:*:*:*
- (no CPE)range: >=3.0, <=4.2.2
Patches
Vulnerability mechanics
Root cause
"The PHP interpreter does not properly terminate when invoked directly without arguments."
Attack vector
Remote attackers can exploit this vulnerability by directly invoking the PHP interpreter via a web request without any command-line arguments [ref_id=1]. This is particularly relevant when PHP is configured to run on Apache, especially on Microsoft Windows platforms [ref_id=1]. By repeatedly sending such requests, an attacker can cause the PHP process to hang, consuming server resources and potentially preventing the server from launching new PHP processes or other server-side components, leading to a denial of service [ref_id=1].
Affected code
The vulnerability lies within the PHP interpreter itself, specifically when it is invoked directly without any command-line arguments. The provided exploit code targets the `php.exe` executable when run on Apache, indicating that the issue is related to how the interpreter handles direct requests, especially in a CGI-like context [ref_id=1]. The code suggests that even with `cgi.force_redirect` enabled, an empty command line still causes the interpreter to hang.
What the fix does
The advisory does not specify a patch or provide details on how the vulnerability is fixed. However, it is generally recommended to avoid direct invocation of the PHP interpreter from the web and to ensure proper configuration of PHP on the web server. The vulnerability is described as a problem with PHP and Apache on Microsoft Windows platforms, but may be exploitable in other environments as well [ref_id=1].
Preconditions
- configPHP interpreter is accessible via the web server (e.g., Apache).
- configPHP interpreter is running on a Microsoft Windows platform, though other environments may also be vulnerable [ref_id=1].
Reproduction
The provided reference includes a C exploit script named `php-apache.c` which demonstrates how to trigger the denial of service by sending direct requests to the PHP interpreter without arguments. The script can be compiled and run with arguments for host, port, and the path to the PHP binary [ref_id=1].
Generated on Jun 4, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
4News mentions
0No linked articles in our index yet.