SecurityContext

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

IdName
CWE-77Improper 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
Url
http://packetstormsecurity.com/files/140286/PHPMailer-Remote-Code-Execution.html
http://packetstormsecurity.com/files/140350/PHPMailer-Sendmail-Argument-Injection.html
http://www.rapid7.com/db/modules/exploit/multi/http/phpmailer_arg_injection
http://www.securityfocus.com/bid/95130
https://legalhackers.com/advisories/PHPMailer-Exploit-Remote-Code-Exec-CVE-2016-10045-Vuln-Patch-Bypass.html

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/PHPMailer/PHPMailer/releases/tag/v5.2.20Patch, Vendor Advisory
https://github.com/PHPMailer/PHPMailer/wiki/About-the-CVE-2016-10033-and-CVE-2016-10045-vulnerabilitiesPatch, Vendor Advisory
http://openwall.com/lists/oss-security/2016/12/28/1Mailing List, Patch
http://seclists.org/fulldisclosure/2016/Dec/81Mailing List, Patch, Third Party Advisory
https://legalhackers.com/advisories/PHPMailer-Exploit-Remote-Code-Exec-CVE-2016-10045-Vuln-Patch-Bypass.htmlExploit, Patch, Third Party Advisory
http://packetstormsecurity.com/files/140286/PHPMailer-Remote-Code-Execution.htmlExploit, Third Party Advisory, VDB Entry
http://packetstormsecurity.com/files/140350/PHPMailer-Sendmail-Argument-Injection.htmlExploit, Third Party Advisory, VDB Entry
http://www.rapid7.com/db/modules/exploit/multi/http/phpmailer_arg_injectionExploit, Third Party Advisory
http://www.securityfocus.com/bid/95130Exploit, Third Party Advisory, VDB Entry
https://www.exploit-db.com/exploits/40969/Exploit, Third Party Advisory, VDB Entry

Products

Same in every row:

  • Platform bound: no
  • Sources: nvd
ProductAffectedUrl
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

RepositoryLink kindsIndexedUrl
PHPMailer/PHPMailerfix, package, releases, security_advisoryyes/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