CVE-2015-4642 Command injection in n/a
Remote attackers can execute arbitrary OS commands on Windows systems via crafted input to PHP applications using escapeshellarg.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2015-4642?
CVE-2015-4642 is a critical command injection vulnerability in Php Php, published on 16 May 2016. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The escapeshellarg function in ext/standard/exec.c in PHP before 5.4.42, 5.5.x before 5.5.26, and 5.6.x before 5.6.10 on Windows allows remote attackers to execute arbitrary OS commands via a crafted string to an application that accepts command-line arguments for a call to the PHP system function.
Weakness: CWE-78
Which versions are affected by CVE-2015-4642?
It affects 1 product.
Products include Php Php.
How do I fix CVE-2015-4642?
Upgrade to a fixed version.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2015-4642 being exploited?
There is no known exploitation of CVE-2015-4642 in the wild and no public exploit code.
Other vulnerabilities in Php Php
Sources
Also known as GHSA-2g3c-3p8m-g2p4.