← Vulnerability feed

Vulnerability record · CVE-2016-10033 · published 30 December 2016

CVE-2016-10033: PHPMailer isMail mailSend argument injection enables remote code execution

Phpmailer Project · Phpmailer

PHPMailer before 5.2.18 fails to properly sanitize the Sender property in the mailSend function of the isMail transport, allowing a crafted backslash-double-quote sequence to inject extra arguments into the underlying mail command. Because the injected arguments reach a shell command, this argument injection can escalate to arbitrary code execution. PHPMailer is widely embedded in PHP applications, including WordPress and Joomla, so exposure is broad wherever user input reaches the Sender field.

9.8 CVSS 3.1 Critical CISA KEV since 7 Jul 2025 EPSS 100% · top 0.1% CWE-88 · Argument injection
9.8CVSS 3.1 base score, v2 7.5
100%EPSS exploitation probability, 30 days
YesIn CISA KEV, fix deadline passed
3Affected product versions listed by NVD
43References, 28 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 16 September 2026. Confidence: high.

critical priorityCVSS 9.8 with no authentication or user interaction required, confirmed exploitation in the wild via CISA KEV, and an EPSS probability above 99 percent make this an urgent remediation item.

What it is

PHPMailer before 5.2.18 fails to properly sanitize the Sender property in the mailSend function of the isMail transport, allowing a crafted backslash-double-quote sequence to inject extra arguments into the underlying mail command. Because the injected arguments reach a shell command, this argument injection can escalate to arbitrary code execution. PHPMailer is widely embedded in PHP applications, including WordPress and Joomla, so exposure is broad wherever user input reaches the Sender field.

Impact

An attacker can execute arbitrary code on the host running the vulnerable PHP application, gaining the privileges of the web server process. That typically means full compromise of the application and a foothold for lateral movement or persistence.

Attack surface

Reached over the network through any application path that lets attacker-controlled data populate the PHPMailer Sender property; the CVSS vector indicates no authentication and no user interaction are required. The flaw is in the mail transport layer, so it is only reachable where the isMail transport is used and the Sender value is not otherwise constrained.

Exploitation

CISA added this to the Known Exploited Vulnerabilities catalog on 2025-07-07 with a 2025-07-28 remediation due date, and EPSS gives a 30-day probability of 0.99714 (99.95th percentile). Multiple public exploit references exist, including Packet Storm, Rapid7 Metasploit, and several Exploit-DB entries, so weaponized exploitation is well established.

What to do

  • Upgrade PHPMailer to 5.2.18 or later, or to a current supported release, and confirm the version actually loaded by the application.
  • Update or patch bundled copies of PHPMailer shipped inside WordPress, Joomla, Drupal and other frameworks, since the library is often vendored rather than installed separately.
  • Where immediate upgrade is impossible, restrict or sanitize any user-supplied value that reaches the Sender property and avoid passing untrusted input into mail transport parameters.
  • Disable or replace the isMail transport in favor of a transport that does not invoke a shell command, if the application permits it.
  • Follow the CISA KEV required action and applicable BOD 22-01 guidance for cloud services, or discontinue use of the affected product if mitigations cannot be applied.

Detection

  • Search application and dependency inventories for PHPMailer versions below 5.2.18, including vendored copies inside CMS and framework directories.
  • Monitor web server and application logs for requests containing backslash-double-quote sequences or shell metacharacters in fields that feed mail sending, such as sender or from addresses.
  • Alert on unexpected child processes spawned by the web server user, particularly shell or mail-related binaries, which would indicate successful argument injection.
  • Review outbound mail and process telemetry for anomalous command execution originating from the PHP process following mail-sending activity.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Exploitation in the wild

CISA added CVE-2016-10033 to the Known Exploited Vulnerabilities catalog on 7 July 2025 as "PHPMailer Command Injection Vulnerability". Required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable. Federal deadline 28 July 2025.

Affected products

3 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://packetstormsecurity.com/files/140291/PHPMailer-Remote-Code-Execution.html ExploitThird Party AdvisoryVDB Entry
http://packetstormsecurity.com/files/140350/PHPMailer-Sendmail-Argument-Injection.html ExploitThird Party AdvisoryVDB Entry
http://seclists.org/fulldisclosure/2016/Dec/78 Mailing ListPatchThird Party Advisory
http://www.rapid7.com/db/modules/exploit/multi/http/phpmailer_arg_injection ExploitThird Party Advisory
http://www.securityfocus.com/archive/1/539963/100/0/threaded Broken LinkThird Party AdvisoryVDB Entry
http://www.securityfocus.com/bid/95108 Broken LinkExploitThird Party AdvisoryVDB Entry
http://www.securitytracker.com/id/1037533 Broken LinkThird Party AdvisoryVDB Entry
https://developer.joomla.org/security-centre/668-20161205-phpmailer-security-advisory.html Third Party Advisory
https://github.com/PHPMailer/PHPMailer/releases/tag/v5.2.18 PatchVendor Advisory
https://github.com/PHPMailer/PHPMailer/wiki/About-the-CVE-2016-10033-and-CVE-2016-10045-vulnerabilities PatchVendor Advisory
https://legalhackers.com/advisories/PHPMailer-Exploit-Remote-Code-Exec-CVE-2016-10033-Vuln.html ExploitPatchThird Party Advisory
https://www.drupal.org/psa-2016-004 Third Party Advisory
https://www.exploit-db.com/exploits/40968/ ExploitPatchThird Party AdvisoryVDB Entry
https://www.exploit-db.com/exploits/40969/ ExploitThird Party AdvisoryVDB Entry
https://www.exploit-db.com/exploits/40970/ ExploitPatchThird Party AdvisoryVDB Entry
https://www.exploit-db.com/exploits/40974/ ExploitThird Party AdvisoryVDB Entry
https://www.exploit-db.com/exploits/40986/ ExploitThird Party AdvisoryVDB Entry
https://www.exploit-db.com/exploits/41962/ ExploitThird Party AdvisoryVDB Entry
https://www.exploit-db.com/exploits/41996/ ExploitThird Party AdvisoryVDB Entry
https://www.exploit-db.com/exploits/42024/ ExploitThird Party AdvisoryVDB Entry
https://www.exploit-db.com/exploits/42221/ ExploitThird Party AdvisoryVDB Entry
http://packetstormsecurity.com/files/140291/PHPMailer-Remote-Code-Execution.html ExploitThird Party AdvisoryVDB Entry
http://packetstormsecurity.com/files/140350/PHPMailer-Sendmail-Argument-Injection.html ExploitThird Party AdvisoryVDB Entry
http://seclists.org/fulldisclosure/2016/Dec/78 Mailing ListPatchThird Party Advisory
http://www.rapid7.com/db/modules/exploit/multi/http/phpmailer_arg_injection ExploitThird Party Advisory
http://www.securityfocus.com/archive/1/539963/100/0/threaded Broken LinkThird Party AdvisoryVDB Entry
http://www.securityfocus.com/bid/95108 Broken LinkExploitThird Party AdvisoryVDB Entry
http://www.securitytracker.com/id/1037533 Broken LinkThird Party AdvisoryVDB Entry
https://developer.joomla.org/security-centre/668-20161205-phpmailer-security-advisory.html Third Party Advisory
https://github.com/PHPMailer/PHPMailer/releases/tag/v5.2.18 PatchVendor Advisory
https://github.com/PHPMailer/PHPMailer/wiki/About-the-CVE-2016-10033-and-CVE-2016-10045-vulnerabilities PatchVendor Advisory
https://legalhackers.com/advisories/PHPMailer-Exploit-Remote-Code-Exec-CVE-2016-10033-Vuln.html ExploitPatchThird Party Advisory
https://www.drupal.org/psa-2016-004 Third Party Advisory
https://www.exploit-db.com/exploits/40968/ ExploitPatchThird Party AdvisoryVDB Entry
https://www.exploit-db.com/exploits/40969/ ExploitThird Party AdvisoryVDB Entry
https://www.exploit-db.com/exploits/40970/ ExploitPatchThird Party AdvisoryVDB Entry
https://www.exploit-db.com/exploits/40974/ ExploitThird Party AdvisoryVDB Entry
https://www.exploit-db.com/exploits/40986/ ExploitThird Party AdvisoryVDB Entry
https://www.exploit-db.com/exploits/41962/ ExploitThird Party AdvisoryVDB Entry
https://www.exploit-db.com/exploits/41996/ ExploitThird Party AdvisoryVDB Entry

Track CVE-2016-10033 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2026-63030WordPress REST API route confusion leads to SQL injection and RCEWordPress 6.9.x before 6.9.5 and 7.0.x before 7.0.2 contain a REST API batch endpoint route confusion flaw (CWE-436). Chained with the author__not_in…KEVEPSS 10%analysed5.9CVE-2026-60137WordPress WP_Query author__not_in SQL injectionWordPress core fails to properly sanitise the author__not_in parameter of WP_Query in versions before 6.8.6, 6.9.5 and 7.0.2, allowing SQL injection …KEVEPSS 5.9%analysed5.3CVE-2023-23752Joomla! webservice endpoints improper access checkJoomla! 4.0.0 through 4.2.7 contains an improper access check that allows unauthenticated access to webservice endpoints. Because the endpoints can e…KEVEPSS 100%analysed10.0CVE-2012-2399Wordpress vulnerabilityCross-site scripting (XSS) vulnerability in swfupload.swf in SWFupload 2.2.0.1 and earlier, as used in WordPress before 3.5.2, TinyMCE Image Manager …EPSS 8.6%10.0CVE-2012-2400Wordpress vulnerabilityUnspecified vulnerability in wp-includes/js/swfobject.js in WordPress before 3.3.2 has unknown impact and attack vectors.EPSS 3.0%10.0CVE-2011-3125Wordpress vulnerabilityUnspecified vulnerability in WordPress 3.1 before 3.1.3 and 3.2 before Beta 2 has unknown impact and attack vectors related to "Various security hard…EPSS 2.4%10.0CVE-2011-3122Wordpress vulnerabilityUnspecified vulnerability in WordPress 3.1 before 3.1.3 and 3.2 before Beta 2 has unknown impact and attack vectors related to "Media security."EPSS 2.6%10.0CVE-2009-2853Wordpress permissions and access controls vulnerabilityWordpress before 2.8.3 allows remote attackers to gain privileges via a direct request to (1) admin-footer.php, (2) edit-category-form.php, (3) edit-…EPSS 4.7%

Source: NIST National Vulnerability Database (record CVE-2016-10033), CISA KEV, FIRST EPSS (scores of 2026-09-16). This page is refreshed as NVD updates the record.