[ CVE-2016-10033 · Published 30 Dec 2016 ]
PHPMailer Command Injection Vulnerability
[ Why it matters ]Priority signals
- Exploited in the wild: on CISA's Known Exploited Vulnerabilities list since 2025-07-07
- EPSS: 100% chance of exploitation in the next 30 days (higher than 100% of CVEs)
- Critical severity: CVSS 9.8
[ Description ]Official 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.
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.
[ Fixes ]Fixes and patches
CISA required action (US federal deadline 28 Jul 2025): Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
- Patch on seclists.orgVendor patch or bulletin · NVD · Reference tagged 'Patch' by NVD
- Patch on github.comVendor patch or bulletin · NVD · Reference tagged 'Patch' by NVD
- Patch on github.comVendor patch or bulletin · NVD · Reference tagged 'Patch' by NVD
- Patch on legalhackers.comVendor patch or bulletin · NVD · Reference tagged 'Patch' by NVD
- Patch on exploit-db.comVendor patch or bulletin · NVD · Reference tagged 'Patch' by NVD
- Patch on exploit-db.comVendor patch or bulletin · NVD · Reference tagged 'Patch' by NVD
[ References ]References
- packetstormsecurity.com/files/140291/PHPMailer-Remote-Code-Execution.htmlExploitThird Party AdvisoryVDB Entry
- packetstormsecurity.com/files/140350/PHPMailer-Sendmail-Argument-Injection.htmlExploitThird Party AdvisoryVDB Entry
- seclists.org/fulldisclosure/2016/Dec/78Mailing ListPatchThird Party Advisory
- www.rapid7.com/db/modules/exploit/multi/http/phpmailer_arg_injectionExploitThird Party Advisory
- www.securityfocus.com/archive/1/539963/100/0/threadedBroken LinkThird Party AdvisoryVDB Entry
- www.securityfocus.com/bid/95108Broken LinkExploitThird Party Advisory
- www.securitytracker.com/id/1037533Broken LinkThird Party AdvisoryVDB Entry
- developer.joomla.org/security-centre/668-20161205-phpmailer-security-advisory.htmlThird Party Advisory
- github.com/PHPMailer/PHPMailer/releases/tag/v5.2.18PatchVendor Advisory
- github.com/PHPMailer/PHPMailer/wiki/About-the-CVE-2016-10033-and-CVE-2016-10045-vulnera…PatchVendor Advisory
- legalhackers.com/advisories/PHPMailer-Exploit-Remote-Code-Exec-CVE-2016-10033-Vuln.htmlExploitPatchThird Party Advisory
- www.drupal.org/psa-2016-004Third Party Advisory
- www.exploit-db.com/exploits/40968ExploitPatchThird Party Advisory
- www.exploit-db.com/exploits/40969ExploitThird Party AdvisoryVDB Entry
- www.exploit-db.com/exploits/40970ExploitPatchThird Party Advisory
- www.exploit-db.com/exploits/40974ExploitThird Party AdvisoryVDB Entry
- www.exploit-db.com/exploits/40986ExploitThird Party AdvisoryVDB Entry
- www.exploit-db.com/exploits/41962ExploitThird Party AdvisoryVDB Entry
- www.exploit-db.com/exploits/41996ExploitThird Party AdvisoryVDB Entry
- www.exploit-db.com/exploits/42024ExploitThird Party AdvisoryVDB Entry
- www.exploit-db.com/exploits/42221ExploitThird Party AdvisoryVDB Entry
- www.cisa.gov/known-exploited-vulnerabilities-catalogUS Government Resource