CVE-2012-2336 Denial of service in n/a
Remote attackers can cause denial of service in PHP CGI by sending malformed query strings, requiring PHP to be configured as a CGI script.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2012-2336?
CVE-2012-2336 is a medium-severity denial of service vulnerability in Php Php, published on 11 May 2012. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
sapi/cgi/cgi_main.c in PHP before 5.3.13 and 5.4.x before 5.4.3, when configured as a CGI script (aka php-cgi), does not properly handle query strings that lack an = (equals sign) character, which allows remote attackers to cause a denial of service (resource consumption) by placing command-line options in the query string, related to lack of skipping a certain php_getopt for the 'T' case. NOTE: this vulnerability exists because of an incomplete fix for CVE-2012-1823.
Weakness: CWE-20
Which versions are affected by CVE-2012-2336?
It affects 1 product.
Products include Php Php.
How do I fix CVE-2012-2336?
Upgrade to a fixed version.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2012-2336 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2012-2336 exists.
Public exploit code: 4 Exploit-DB entries.
Other vulnerabilities in Php Php
Sources
Also known as GHSA-gjrg-p28q-p9w2.