Vulnerabilities · 2012 · Php
CVE-2012-2335
Php vulnerability
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 products
Php. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Php runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- bugs.php.net/bug.php?id=61910 · Vendor Advisory
- eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/
- git.php.net/?p=php-src.git%3Ba=blob%3Bf=sapi/cgi/cgi_main.c%3Bh=a7ac26f0#l1569
- lists.opensuse.org/opensuse-security-announce/2012-06/msg00004.html
- lists.opensuse.org/opensuse-security-announce/2012-07/msg00003.html
- secunia.com/advisories/49014
- www.kb.cert.org/vuls/id/520827
- www.php.net/archive/2012.php#id2012-05-06-1
- nvd.nist.gov/vuln/detail/CVE-2012-2335
- cve.org/CVERecord?id=CVE-2012-2335
More vulnerabilities in Php products
CVE-2025-14180CVE-2025-14178CVE-2025-14177CVE-2025-6491CVE-2025-1861CVE-2025-1736CVE-2025-1735CVE-2025-1734All 740
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.