CVE-2001-1246 Command injection in n/a

High 7.5 Published Updated

Local attackers can execute arbitrary commands via shell metacharacters in the mail function when PHP safe mode is enabled.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2001-1246?

CVE-2001-1246 is a high-severity command injection vulnerability in Php Php, published on 25 Jun 2002. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

PHP 4.0.5 through 4.1.0 in safe mode does not properly cleanse the 5th parameter to the mail() function, which allows local users and possibly remote attackers to execute arbitrary commands via shell metacharacters.

Weakness: CWE-88

Which versions are affected by CVE-2001-1246?

It affects 1 product.

Products include Php Php.

How do I fix CVE-2001-1246?

No fix has been published for CVE-2001-1246 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2001-1246 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2001-1246 exists.

Public exploit code: 1 Exploit-DB entry.

All Php Php vulnerabilities

Sources

Also known as GHSA-7pf5-hfgr-ch72.

Is CVE-2001-1246 in your software?

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

Check your SBOMs for free