CVE-2002-0985 Command injection in n/a
Attackers can inject arguments into the PHP mail function to bypass safe mode and potentially execute arbitrary commands on the mail server.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2002-0985?
CVE-2002-0985 is a high-severity command injection vulnerability in Php Php, published on 1 Sep 2004. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Argument injection vulnerability in the mail function for PHP 4.x to 4.2.2 may allow attackers to bypass safe mode restrictions and modify command line arguments to the MTA (e.g. sendmail) in the 5th argument to mail(), altering MTA behavior and possibly executing commands.
Weakness: CWE-88
Which versions are affected by CVE-2002-0985?
It affects 2 products.
Products include Openpkg Openpkg, Php Php.
How do I fix CVE-2002-0985?
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-2002-0985 being exploited?
There is no known exploitation of CVE-2002-0985 in the wild and no public exploit code.
Other vulnerabilities in Php Php
Sources
Also known as GHSA-39rv-383r-32wp.