CVE-2016-10033

PHPMailer: Command Injection

As of , CVE-2016-10033 in PHPMailer is on CISA's list of exploited vulnerabilities: CISA listed it on . Our patch-first group: Patch this week.

Exploited
Yes: CISA listed it on 7 July 2025
US federal deadline
28 July 202521 days after CISA listed it. US federal civilian agencies must fix it by then.
Used in ransomware campaigns
Not known to CISA
EPSS score
0.99Higher than 99% of the CVEs EPSS scores. EPSS estimates the chance of exploitation activity in the next 30 days.
Public exploit
2 Metasploit modules and 9 Exploit-DB entries (2 verified)
Fix
Vendor advice: github.comLinks below, from CISA's entry.

What CISA says to do

Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

CISA's required action

What the flaw is

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.

CISA's description

The mailSend function in the isMail transport in PHPMailer before 5.2.18 might allow remote attackers to pass extra parameters to the mail command and consequently execute arbitrary code via a \" (backslash double quote) in a crafted Sender property.

The CVE record's description, from mitre

CVE published
30 December 2016
Assigned by
mitre
CVSS
9.8 Critical (CVSS 3.1, from CISA-ADP)
CWE-88
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
CWE-77
Improper Neutralization of Special Elements used in a Command ('Command Injection')
CISA SSVC, exploitation
active
CISA SSVC, automatable
yes
CISA SSVC, technical impact
total

Timeline

  1. Exploit-DB published an exploit (EDB-ID 40970).
  2. Exploit-DB published an exploit (EDB-ID 40968).
  3. Exploit-DB published an exploit (EDB-ID 40969).
  4. Exploit-DB published an exploit (EDB-ID 40974).
  5. The CVE record was published.
  6. Exploit-DB published an exploit (EDB-ID 40986).
  7. Exploit-DB published an exploit (EDB-ID 41962).
  8. Exploit-DB published an exploit (EDB-ID 41996).
  9. Exploit-DB published an exploit (EDB-ID 42024).
  10. Exploit-DB published an exploit (EDB-ID 42221).
  11. CISA added it to its list of exploited vulnerabilities.
  12. The US federal deadline to fix it.

Public exploits

Facts from Metasploit's module list and Exploit-DB's index; we never copy exploit code.

Read further