CVE-2016-10045: PHPMailer - Remote Code Execution
- Cve: CVE-2016-10045
- Name: PHPMailer - Remote Code Execution
- 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.
- Impact: Attackers can execute arbitrary code on the server by passing malicious parameters via email, leading to full system compromise.
- Remediation: Update to version 5.2.20 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.97738
- Epss percentile: 0.99906
- Assignee: [email protected]
- Published at: 2016-12-30T19:59:00Z
- Age in days: 3616
- Modified at: 2026-06-17T00:38:57Z
- Patch available: yes
- Public exploits total: 7
- References total: 15
- Products total: 3
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2016-10045
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements
Cwe
| Id | Name |
|---|---|
| CWE-77 | Improper Neutralization of Special Elements used in a Command |
Hackerone
- Reports: 5
- Rank: 2637
Public exploits
Same in every row:
- Source: nvd
- Added date: 2016-12-30
References
Same in every row:
- Source: nvd
Products
Same in every row:
- Platform bound: no
- Sources: nvd
| Product | Affected | Url |
|---|---|---|
| phpmailer_project:phpmailer | < 5.2.20 | /v1/products/phpmailer_project/phpmailer |
| wordpress:wordpress | <= 4.7 | /v1/products/wordpress/wordpress |
| joomla:joomla! | >= 1.5.0, <= 3.6.5 | /v1/products/joomla/joomla! |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| PHPMailer/PHPMailer | fix, package, releases, security_advisory | yes | /v1/repositories/PHPMailer/PHPMailer |
Index
- Repositories: 3
- Repositories high signal: 1
- Checked, none or zero: packages
Exploitation
- Exploitation seen: yes
- Public exploit: yes
- Public exploit count: 7
- Public exploit first date: 2016-12-26
- Remote: yes
- Hackerone reports: 5
- Exposed hosts: 3144143
- Checked, none or zero: known exploited, known exploited by, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since