CVE-2016-10033
PHPMailer Command Injection Vulnerability
- Actively exploited
- Critical · 9.8 of 10
- Exploited since
- 7 Jul 2025 added to the CISA list
- Chance of attacks
- 100% in the next 30 days (FIRST EPSS)
- Fix deadline
- 28 Jul 2025 for US federal agencies
- Published
- 30 Dec 2016 in the NVD
What this means
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
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.
NIST National Vulnerability Database
What 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. If you use the product, install the vendor's update as soon as possible.
Affected
- n/a n/a
Official sources
- nvd.nist.gov/vuln/detail/CVE-2016-10033
- github.com/PHPMailer/PHPMailer/releases/tag/v5.2.18 vendor advisory
- github.com/PHPMailer/PHPMailer/wiki/About-the-CVE-2016-10033-and-CVE-2016-10045-vulnerabil... vendor advisory
- packetstormsecurity.com/files/140291/PHPMailer-Remote-Code-Execution.html
- packetstormsecurity.com/files/140350/PHPMailer-Sendmail-Argument-Injection.html
- seclists.org/fulldisclosure/2016/Dec/78
- rapid7.com/db/modules/exploit/multi/http/phpmailer_arg_injection
- securityfocus.com/archive/1/539963/100/0/threaded
- securityfocus.com/bid/95108
Data from the NIST National Vulnerability Database, the CISA Known Exploited Vulnerabilities list, FIRST EPSS and ENISA, checked 18 Nov 2026. CVSS vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.