CVE-2016-10045: The isMail transport in PHPMailer before 5.2.20 might allow remote attackers to pass extra parameters to the m
CVE-2016-10045 is a critical-severity flaw (CVSS 9.8) affecting phpmailer, wordpress, joomla\!. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
The isMail transport in PHPMailer before 5.2.20 might allow remote attackers to pass extra parameters to the mail command and consequently execute arbitrary code by leveraging improper interaction between the escapeshellarg function and internal escaping performed in the mail function in PHP. NOTE: this vulnerability exists because of an incorrect fix for CVE-2016-10033.
Why this priority
- Critical severity
- EPSS top 1%: very likely to be exploited
- Public exploit reference
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 97.7% (top 1%) |
| CISA exploited list | No |
| Weakness | CWE-77 |
| Published | 2016-12-30 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- Exploit-DB: PHPMailer < 5.2.20 - Remote Code Execution
- Exploit-DB: PHPMailer < 5.2.20 / SwiftMailer < 5.4.5-DEV / Zend Framework / zend-mail < 2.4.11 - 'AIO' 'PwnScriptum' Remote Code Exe
- Exploit-DB: PHPMailer < 5.2.20 with Exim MTA - Remote Code Execution
- Metasploit: PHPMailer Sendmail Argument Injection
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2016-10045?
phpmailer: upgrade to 5.2.20; wordpress: upgrade to newer than 4.7; joomla\!: upgrade to newer than 3.6.5. Exact commands for each OS are on this page.
Is CVE-2016-10045 being exploited?
CVE-2016-10045 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2016-10045 affect?
CVE-2016-10045 affects phpmailer, wordpress, joomla\!. Severity is critical (CVSS 9.8). The isMail transport in PHPMailer before 5.2.20 might allow remote attackers to pass extra parameters to the mail command and consequently execute arbitrary code by leveraging improper interaction between the escapeshellarg function and int
How urgent is CVE-2016-10045?
Priority 69/100. Critical severity; EPSS top 1%: very likely to be exploited; Public exploit reference; Remotely exploitable, no login, no user action
Software pages
WordPress vulnerabilities · Joomla vulnerabilities · PHP vulnerabilities
Related CVEs
- CVE-2021-3603 HIGH 8.1 UPGRADE MITIGATE PHPMailer 6.4.1 and earlier contain a vulnerability that can result in untrusted code being called (if such co
- CVE-2021-34551 HIGH 8.1 UPGRADE MITIGATE PHPMailer before 6.5.0 on Windows allows remote code execution if lang_path is untrusted data and has a UNC pa
- CVE-2020-36326 CRITICAL 9.8 UPGRADE UPGRADE PHPMailer 6.1.8 through 6.4.0 allows object injection through Phar Deserialization via addAttachment with a UN
- CVE-2020-13625 HIGH 7.5 UPGRADE MITIGATE PHPMailer before 6.1.6 contains an output escaping bug when the name of a file attachment contains a double qu
- CVE-2018-19296 HIGH 8.8 UPGRADE MITIGATE PHPMailer before 5.2.27 and 6.x before 6.0.6 is vulnerable to an object injection attack.