CVE-2016-10045
publishedphpmailer: Parameter injection via mail() function
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Alpine Linux | v3.2 | php-phpmailer | Fixed | 5.2.4-r0 | Package fix record |
| Ubuntu | xenial | libphp-phpmailer | Advisory build | 5.2.14+dfsg-1ubuntu0.1~esm1 | USN-5956-1 |
| Alpine Linux | v3.3 | php-phpmailer | Fixed | 5.2.4-r0 | Package fix record |
| Alpine Linux | v3.4 | php5-phpmailer | Fixed | 5.2.0-r1 | Package fix record |
| Alpine Linux | v3.5 | php5-phpmailer | Fixed | 5.2.4-r1 | Package fix record |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
15- [oss-security] 20161228 Re: PHPMailer < 5.2.18 Remote Code Execution [updated advisory] [CVE-2016-10033] http://openwall.com/lists/oss-security/2016/12/28/1
- http://packetstormsecurity.com/files/140286/PHPMailer-Remote-Code-Execution.html
- http://packetstormsecurity.com/files/140350/PHPMailer-Sendmail-Argument-Injection.html
- 20161227 PHPMailer < 5.2.20 Remote Code Execution PoC 0day Exploit (CVE-2016-10045) (Bypass of the CVE-2016-1033 patch) http://seclists.org/fulldisclosure/2016/Dec/81
- http://www.rapid7.com/db/modules/exploit/multi/http/phpmailer_arg_injection
- 20161228 PHPMailer < 5.2.20 Remote Code Execution PoC 0day Exploit (CVE-2016-10045) (Bypass of the CVE-2016-1033 patch) http://www.securityfocus.com/archive/1/539967/100/0/threaded
- 95130 http://www.securityfocus.com/bid/95130
- 1037533 http://www.securitytracker.com/id/1037533
- https://developer.joomla.org/security-centre/668-20161205-phpmailer-security-advisory.html
- https://github.com/PHPMailer/PHPMailer/releases/tag/v5.2.20
- https://github.com/PHPMailer/PHPMailer/wiki/About-the-CVE-2016-10033-and-CVE-2016-10045-vulnerabilities
- https://legalhackers.com/advisories/PHPMailer-Exploit-Remote-Code-Exec-CVE-2016-10045-Vuln-Patch-Bypass.html
- 40969 https://www.exploit-db.com/exploits/40969/
- 40986 https://www.exploit-db.com/exploits/40986/
- 42221 https://www.exploit-db.com/exploits/42221/
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 63e8a330141d10619954ac9df5c949ebda5ef1afd44ee1d2c29c063a1272d08e
- Ingested
- 23 Sep 2026, 07:41:02 UTC
- Source record
- Official CVE record