Remote code executionin PHPMailer.
On CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks.'s exploited list since 7 Jul 2025.
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.
CISA: 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.
- Upgrade phpmailer/phpmailer (Packagist) to 5.2.18 or later.
- CISA requires US federal agencies to fix it by 28 Jul 2025.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 22 Dec 2016CVE ID reserved by mitre.
- 26 Dec 2016First public proof of concept on GitHub.
- 26 Dec 2016Metasploit module: PHPMailer Sendmail Argument Injection.
- 30 Dec 2016Published in the CVE List.
- 7 Jul 2025Added to CISA's Known Exploited Vulnerabilities list.
- 21 Oct 2025CVE record last updated.
Attack code anyone can find
Exploit maturity: Exploited in the wild (CISA KEV). CISA assessment (SSVC): exploitation active.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Same weakness: Argument injection
- packetstormsecurity.com x_refsource_MISC
- www.drupal.org x_refsource_CONFIRM
- legalhackers.com x_refsource_MISC
- github.com x_refsource_CONFIRM
- www.securityfocus.com mailing-list, x_refsource_BUGTRAQ
- github.com x_refsource_CONFIRM
- packetstormsecurity.com x_refsource_MISC
- www.rapid7.com x_refsource_MISC
- seclists.org mailing-list, x_refsource_FULLDISC
- www.securityfocus.com vdb-entry, x_refsource_BID
- www.securitytracker.com vdb-entry, x_refsource_SECTRACK
- developer.joomla.org x_refsource_CONFIRM
- www.cisa.gov government-resource
Patchminder. CVE-2016-10033: Remote code execution in PHPMailer. https://patchminder.com/cve/cve-2016-10033/ (accessed 5 December 2026).