CVE-2012-2336Php Improper Input Validation
NVD
Vulnerability Summary
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.
Affected & Patched Versions
- Php <= 5.3.12
- Php
No patched version published yet
Until a fix ships, reduce exposure:
- Restrict access to the affected service or interface to trusted networks.
- Disable the affected feature if you do not need it.
- Watch the vendor advisory for a firmware or software update.
What to do
Fix it during your normal patch cycle. No exploitation is confirmed yet.
- Check whether you run Php and which version.
- No patched version is listed yet. Limit access to the affected service to trusted networks, and disable the feature if you can.
- Subscribe to the vendor advisory so you learn when a fix ships.
Timeline
- May 11, 2012Published
- Apr 29, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new Php CVEsYou are reading CVE-2012-2336. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Referencehttp://lists.opensuse.org/opensuse-security-announce/2012-06/msg00004.html
- Referencehttp://lists.opensuse.org/opensuse-security-announce/2012-07/msg00003.html
- Vendor Advisoryhttp://secunia.com/advisories/49014
- Referencehttp://www.php.net/ChangeLog-5.php#5.4.3
- Vendor Advisoryhttp://www.php.net/archive/2012.php#id2012-05-08-1
- Vendor Advisoryhttps://bugs.php.net/bug.php?id=61910
- Issue Trackinghttps://bugs.php.net/patch-display.php?bug_id=61910&patch=CVE-2012-1823.patch&revision=1336251592&display=1
- Referencehttps://h20564.www2.hp.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c03839862
- Referencehttp://lists.opensuse.org/opensuse-security-announce/2012-06/msg00004.html
- Referencehttp://lists.opensuse.org/opensuse-security-announce/2012-07/msg00003.html
- Vendor Advisoryhttp://secunia.com/advisories/49014
- Referencehttp://www.php.net/ChangeLog-5.php#5.4.3
- Vendor Advisoryhttp://www.php.net/archive/2012.php#id2012-05-08-1
- Vendor Advisoryhttps://bugs.php.net/bug.php?id=61910
- Issue Trackinghttps://bugs.php.net/patch-display.php?bug_id=61910&patch=CVE-2012-1823.patch&revision=1336251592&display=1
- Referencehttps://h20564.www2.hp.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c03839862
Data last checked: Nov 24, 2026 09:23 UTC