patchminder
Exploited in the wild · CISA KEV CVE-2016-10033

Remote code executionin PHPMailer.

Published 30 Dec 2016 · Updated 21 Oct 2025 · Every fact sourced

JSONCite
Is it exploited?
Yes

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.

On CISA's listAttack code is public
Severity
Critical 9.8
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment · no login needed
Attack likelihood
Very high
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 99.7% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 5.2.18 or later
In plain words

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.

What to do now
  • Upgrade phpmailer/phpmailer (Packagist) to 5.2.18 or later.
  • CISA requires US federal agencies to fix it by 28 Jul 2025.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
n/a
Not confirmed
Not confirmed
CVE record
phpmailer/phpmailer (Packagist)
5.0.0 to before 5.2.18
5.2.18
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 22 Dec 2016
    CVE ID reserved by mitre.
  2. 26 Dec 2016
    First public proof of concept on GitHub.
  3. 26 Dec 2016
    Metasploit module: PHPMailer Sendmail Argument Injection.
  4. 30 Dec 2016
    Published in the CVE List.
  5. 7 Jul 2025
    Added to CISA's Known Exploited Vulnerabilities list.
  6. 21 Oct 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Exploited in the wild (CISA KEV). CISA assessment (SSVC): exploitation active.

Metasploit module
2 modules
Nuclei scan template
Available
Exploit-DB
10 entries
GitHub proof of concepts
19 repositories
Exploit-DBEDB-ID 41688web application exploit for multiple, published 26 Dec 2016, verified by Exploit-DB
Exploit-DBEDB-ID 41996remote exploit for php, published 11 May 2017
Exploit-DBEDB-ID 42024remote exploit for php, published 17 May 2017, verified by Exploit-DB
Exploit-DBEDB-ID 40968web application exploit for php, published 26 Dec 2016, verified by Exploit-DB
Exploit-DBEDB-ID 40970web application exploit for php, published 25 Dec 2016
Exploit-DBEDB-ID 40974web application exploit for php, published 29 Dec 2016
Exploit-DBEDB-ID 40969web application exploit for php, published 27 Dec 2016
Exploit-DBEDB-ID 40986web application exploit for php, published 2 Jan 2017
Exploit-DBEDB-ID 42221web application exploit for php, published 21 Jun 2017
Exploit-DBEDB-ID 41962web application exploit for php, published 3 May 2017
GitHubno warning signs foundopsxcq/exploit-CVE-2016-10033409 stars · created 26 Dec 2016PHPMailer < 5.2.18 Remote Code Execution exploit and vulnerable container
GitHubno warning signs foundGeneralTesler/CVE-2016-100339 stars · created 10 May 2017RCE against WordPress 4.6; Python port of https://exploitbox.io/vuln/WordPress-Exploit-4-6-RCE-CODE-EXEC-CVE-2016-10033.html
GitHubno warning signs foundZenexer/safeshell8 stars · created 29 Dec 2016Prevent PHP vulnerabilities similar to CVE-2016-10033 and CVE-2016-10045.
GitHubno warning signs found0x00-0x00/CVE-2016-100336 stars · created 9 Feb 2018PHPMailer < 5.2.18 Remote Code Execution Exploit
GitHubno warning signs foundpedro823/cve-2016-10033-452 stars · created 19 Nov 2017Exploits CVE-2016-10033 and CVE-2016-10045
GitHubno warning signs foundchipironcin/CVE-2016-100331 stars · created 10 May 2017Code and vulnerable WordPress container for exploiting CVE-2016-10033
GitHubno warning signs foundliusec/WP-CVE-2016-100331 stars · created 22 Jul 2017
GitHubno warning signs foundawidardi/opsxcq-cve-2016-100331 stars · created 6 Feb 2018To solve CTFS.me problem
GitHubno warning signs foundj4k0m/CVE-2016-100331 stars · created 31 Aug 2021Remote Code Execution vulnerability in PHPMailer.
GitHubno warning signs foundBajunan/CVE-2016-100330 stars · created 19 May 2017WordPress 4.6 · Remote Code Execution (RCE) PoC Exploit
Referencewww.exploit-db.comnamed as exploit in the CVE record
Referencewww.exploit-db.comnamed as exploit in the CVE record
Referencewww.exploit-db.comnamed as exploit in the CVE record
Referencewww.exploit-db.comnamed as exploit in the CVE record
Referencewww.exploit-db.comnamed as exploit in the CVE record
Referencewww.exploit-db.comnamed as exploit in the CVE record
Referencewww.exploit-db.comnamed as exploit in the CVE record
Referencewww.exploit-db.comnamed as exploit in the CVE record
Referencewww.exploit-db.comnamed as exploit in the CVE record

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.

Related

Same weakness: Argument injection

All CWE-88 vulnerabilities

References
Cite this page

Patchminder. CVE-2016-10033: Remote code execution in PHPMailer. https://patchminder.com/cve/cve-2016-10033/ (accessed 5 December 2026).