CVE-2012-2336PHP Denial of Service
php: incomplete CVE-2012-1823 fix - missing filtering of -T and -h
Published May 3, 2012 · Updated Feb 4, 2026
Key Facts
Patch immediately- CVE-2012-2336 is a medium-severity vulnerability (CVSS 5.0 v2) affecting PHP, php5 (opensuse), php7 (opensuse) and 22 more products.
- It is exploited in the wild, listed in Industry KEV feed since Jan 15, 2018. Public exploit code is available.
- EPSS estimates a 52% probability of exploitation in the next 30 days.
- Fixed versions are available, including apache2-mod_php5 5.6.28-1.1, apache2-mod_php7 7.0.14-1.4, PHP 0:5.1.6-39.el5_8.
- Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Scores
CVSS v2
5.0
AV:N/AC:L/Au:N/C:N/I:N/A:P
EPSS (30-day exploit likelihood)
52%
Higher than 99.2% of all scored CVEs
Exploit maturity
Exploited (KEV)
ATLAS score
67/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Jan 15, 2018
2083 days after publication
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Exploited (KEV)
Public exploit code
4
Proof-of-concept links
In-the-wild evidence
1
Reports of active use
Advisories And Exploit References
- advisoryRHSA-2012:1045
- advisoryRHSA-2012:1046
- advisoryRHSA-2012:1047
- advisoryhttps://bugs.php.net/bug.php?id=61910
- advisory49014
- advisoryhttp://www.php.net/archive/2012.php#id2012-05-08-1
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.
Known-Exploited Catalog Listings
| Catalog | Added | Remediation due | Ransomware use |
|---|---|---|---|
| Industry KEV feed | Jan 15, 2018 | n/a | Not reported |
Affected Products
306 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| PHPPHP | 1.0, 2.0, 2.0b10, 3.0, 3.0.1, 3.0.10, 3.0.11, 3.0.12 | 5.3.12 |
| php5opensuse | See advisory | 5.6.28-1.1 |
| php7opensuse | See advisory | 7.0.14-1.4 |
| php53-bcmathoracle | See advisory | 5.3.3-13.el5_8 |
| php53-clioracle | See advisory | 5.3.3-13.el5_8 |
Patched Releases
apache2-mod_php5
5.6.28-1.1
apache2-mod_php7
7.0.14-1.4
PHP
0:5.1.6-39.el5_8, 0:5.3.3-14.el6_3, 5.1.6-39.el5_8, 5.3.3-14.el6_3, 5.3.12
php-bcmath
5.1.6-39.el5_8, 5.3.3-14.el6_3
php-cli
5.1.6-39.el5_8, 5.3.3-14.el6_3
php-common
5.1.6-39.el5_8, 5.3.3-14.el6_3
php-dba
5.1.6-39.el5_8, 5.3.3-14.el6_3
php-devel
5.1.6-39.el5_8, 5.3.3-14.el6_3
php-embedded
5.3.3-14.el6_3
php-enchant
5.3.3-14.el6_3
php-gd
5.1.6-39.el5_8, 5.3.3-14.el6_3
php-imap
5.1.6-39.el5_8, 5.3.3-14.el6_3
php-intl
5.3.3-14.el6_3
php-ldap
5.1.6-39.el5_8, 5.3.3-14.el6_3
php-mbstring
5.1.6-39.el5_8, 5.3.3-14.el6_3
php-mysql
5.1.6-39.el5_8, 5.3.3-14.el6_3
php-ncurses
5.1.6-39.el5_8
php-odbc
5.1.6-39.el5_8, 5.3.3-14.el6_3
php-pdo
5.1.6-39.el5_8, 5.3.3-14.el6_3
php-pgsql
5.1.6-39.el5_8, 5.3.3-14.el6_3
php-process
5.3.3-14.el6_3
php-pspell
5.3.3-14.el6_3
php-recode
5.3.3-14.el6_3
php-snmp
5.1.6-39.el5_8, 5.3.3-14.el6_3
php-soap
5.1.6-39.el5_8, 5.3.3-14.el6_3
Timeline
Publicly disclosed
May 3, 2012
Added to Industry KEV feed
Jan 15, 2018
Last updated
Feb 4, 2026
Weakness Type
- CWE-20 Improper Input Validation
- CWE-228 Improper Handling of Syntactically Invalid Structure
- CWE-400 Uncontrolled Resource Consumption
- CWE-791 Incomplete Filtering of Special Elements
References
- advisoryRHSA-2012:1045
- advisoryRHSA-2012:1046
- advisoryRHSA-2012:1047
- advisorybugs.php.net · bug.php
- advisory49014
FAQ
Common Questions.
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 s…
Affected: PHP versions 1.0, 2.0, 2.0b10, 3.0, 3.0.1, 3.0.10, 3.0.11, 3.0.12; php5 (opensuse); php7 (opensuse), among others. The full list is in the CVE brief.
It is exploited in the wild, listed in Industry KEV feed since Jan 15, 2018.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Public exploit code is available.
Fixed versions are available, including apache2-mod_php5 5.6.28-1.1, apache2-mod_php7 7.0.14-1.4, PHP 0:5.1.6-39.el5_8.
Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Is CVE-2012-2336 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo