CVE-2012-2335Php Permissions, Privileges, and Access Controls
NVD
Vulnerability Summary
php-wrapper.fcgi does not properly handle command-line arguments, which allows remote attackers to bypass a protection mechanism in PHP 5.3.12 and 5.4.2 and execute arbitrary code by leveraging improper interaction between the PHP sapi/cgi/cgi_main.c component and a query string beginning with a +- sequence.
Affected & Patched Versions
- 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-2335. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Referencehttp://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/
- Referencehttp://git.php.net/?p=php-src.git%3Ba=blob%3Bf=sapi/cgi/cgi_main.c%3Bh=a7ac26f0#l1569
- Referencehttp://lists.opensuse.org/opensuse-security-announce/2012-06/msg00004.html
- Referencehttp://lists.opensuse.org/opensuse-security-announce/2012-07/msg00003.html
- Referencehttp://secunia.com/advisories/49014
- Advisoryhttp://www.kb.cert.org/vuls/id/520827
- Referencehttp://www.php.net/archive/2012.php#id2012-05-06-1
- Vendor Advisoryhttps://bugs.php.net/bug.php?id=61910
- Referencehttps://exchange.xforce.ibmcloud.com/vulnerabilities/75652
- Referencehttps://h20564.www2.hp.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c03839862
- Referencehttp://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/
- Referencehttp://git.php.net/?p=php-src.git%3Ba=blob%3Bf=sapi/cgi/cgi_main.c%3Bh=a7ac26f0#l1569
- Referencehttp://lists.opensuse.org/opensuse-security-announce/2012-06/msg00004.html
- Referencehttp://lists.opensuse.org/opensuse-security-announce/2012-07/msg00003.html
- Referencehttp://secunia.com/advisories/49014
- Advisoryhttp://www.kb.cert.org/vuls/id/520827
- Referencehttp://www.php.net/archive/2012.php#id2012-05-06-1
- Vendor Advisoryhttps://bugs.php.net/bug.php?id=61910
- Referencehttps://exchange.xforce.ibmcloud.com/vulnerabilities/75652
- Referencehttps://h20564.www2.hp.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c03839862
Data last checked: Nov 24, 2026 09:23 UTC