CVE-2012-2335

CVE-2012-2335 is a high-severity vulnerability in Php with a CVSS 2.0 base score of 7.5. Its EPSS exploit-prediction score of 33% places it in the 98th percentile, indicating an elevated likelihood of exploitation. The underlying weakness is classified as CWE-264.

Key facts

Description

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.

Frequently asked questions

What is CVE-2012-2335?
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.
How severe is CVE-2012-2335?
CVE-2012-2335 has a CVSS 2.0 base score of 7.5, rated high severity.
Is CVE-2012-2335 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 33% (98th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2012-2335?
CVE-2012-2335 primarily affects Php. In total, 2 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
How do I fix CVE-2012-2335?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
When was CVE-2012-2335 published?
CVE-2012-2335 was published on 2012-05-11 and last updated on 2026-06-16.

References

Affected products (2)

More vulnerabilities in Php

All CVEs affecting Php →

Other CWE-264 (Permissions, Privileges, and Access Controls) vulnerabilities

Browse all CWE-264 (Permissions, Privileges, and Access Controls) vulnerabilities →