CVE-2012-2335 Code injection in n/a

High 7.5 Published Updated

Remote attackers can execute arbitrary code by exploiting improper handling of command-line arguments in the PHP CGI wrapper.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2012-2335?

CVE-2012-2335 is a high-severity code injection vulnerability in Php Php, published on 11 May 2012. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-264

Which versions are affected by CVE-2012-2335?

It affects 1 product.

Products include Php Php.

How do I fix CVE-2012-2335?

Apply the vendor's patch.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2012-2335 being exploited?

There is no known exploitation of CVE-2012-2335 in the wild and no public exploit code.

All Php Php vulnerabilities

Sources

Also known as GHSA-ppq5-vhcq-mxw2.

Is CVE-2012-2335 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free