CVE-2001-1246
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…
- 7.5HighCVSS base score
- 9.7%Exploitation in 30 daysEPSS · top 4.4% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 1Public exploitsMetasploit, Nuclei and Exploit-DB
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list an Exploit-DB entry for it.
Show the exploits1
Exploit-DB1 entry
- PHP 4.x - SafeMode Arbitrary File Execution (Exploit-DB entry) (opens in a new tab)
EDB-ID 20985local, phppublished 30 Jun 2001Verified
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By mitre
- 55 days later
· 55 days later
Published
- 22 years later
· 22 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 2.0 | High7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
- EPSS (exploitation in 30 days)
- 9.7% · top 4.4% of all CVEs (9 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Affected products
n/a
- affected n/a
References
7
- RHSA-2003:159 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2002:129 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- php-safemode-elevate-privileges(6787) (opens in a new tab)vdb-entryx_refsource_XFx_transferred
- 2954 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- 20010630 php breaks safe mode (opens in a new tab)mailing-listx_refsource_BUGTRAQx_transferred
- RHSA-2002:102 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- http://www.php.net/do_download.php?download_file=php-4.1.2.tar.gz (opens in a new tab)x_refsource_CONFIRMx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2001-1227 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2001-1246)Record last updated .