All vulnerabilities
CVE-2016-10033

PHPMailer Command Injection Vulnerability

PHP PHPMailerRuntimes & languages
CVSS
9.8Critical
ExploitationExploited in the wildAdded to KEV 7 Jul 2025CISA KEV
Exploit odds (EPSS)99.7%Chance of exploitation activity in the next 30 days, higher than 99.9% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed inNone listedNo source names a fixed version. Check the vendor advisory below
Federal deadline28 Jul 2025Remediation due date for US federal agenciesCISA KEV
CISA required actionApply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable. CISA KEV

What fixes it

No source in this snapshot names a fixed version. The vendor advisories under References are the place to check.

Timeline

  1. 25 Dec 2016Exploit code publicExploit-DB
  2. 30 Dec 2016, 19:00 UTCPublishedCVE List
  3. 7 Jul 2025Added to CISA KEVCISA KEV

Public exploit code and templates 12

  • Exploit modulePHPMailer Sendmail Argument Injection 26 Dec 2016Metasploit
  • Exploit moduleWordPress PHPMailer Host Header Command Injection 3 May 2017Metasploit
  • Webapps exploitPHPMailer < 5.2.18 - Remote Code Execution 26 Dec 2016Exploit-DB
  • Webapps exploitPHPMailer < 5.2.18 - Remote Code Execution 25 Dec 2016Exploit-DB
  • Webapps exploitPHPMailer < 5.2.18 - Remote Code Execution 29 Dec 2016Exploit-DB
  • Webapps exploitPHPMailer < 5.2.20 - Remote Code Execution 27 Dec 2016Exploit-DB
  • Webapps exploitPHPMailer < 5.2.20 / SwiftMailer < 5.4.5-DEV / Zend Framework / zend-mail < 2.4.11 - 'AIO' 'PwnScriptum' Remote Code Execution 2 Jan 2017Exploit-DB
  • Webapps exploitPHPMailer < 5.2.20 with Exim MTA - Remote Code Execution 21 Jun 2017Exploit-DB
  • Remote exploitVanilla Forums < 2.3 - Remote Code Execution 11 May 2017Exploit-DB
  • Webapps exploitWordPress Core 4.6 - Remote Code Execution 3 May 2017Exploit-DB
  • Remote exploitWordPress Plugin PHPMailer 4.6 - Host Header Command Injection (Metasploit) 17 May 2017Exploit-DB
  • Scanner templateWordPress PHPMailer < 5.2.18 - Remote Code ExecutionNuclei

Listed so defenders can prioritize. Threatline links to the source and does not host exploit code.

Description

PHPMailer contains a command injection vulnerability because it fails to sanitize user-supplied input. Specifically, this issue affects the 'mail()' function of 'class.phpmailer.php' script. An attacker can exploit this issue to execute arbitrary code within the context of the application. Failed exploit attempts will result in a denial-of-service condition.

Text from CVE List

Affected versions 1

  • n/aaffected: n/aCVE List

References 17