CVE-2016-10033PHPMailer Command Injection Vulnerability
CVSS score
9.8
Critical
CVSS 3.1 from NVD
Exploit probability (EPSS)
99.7%
99.7% chance of exploitation in the next 30 days, higher than 100.0% of all CVEs.
CISA KEV
Actively exploited
Added to KEV on 7 Jul 2025.
US federal deadline to fix: 28 Jul 2025.
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.
Source: NVD · CNA: cve@mitre.org
How to fix it, step by step
Treat it as urgent
Attackers are already exploiting this flaw: CISA added it to its Known Exploited Vulnerabilities list on 7 Jul 2025.
US federal agencies must fix it by 28 Jul 2025. It's a sensible deadline for everyone else too.
CISA's full instruction
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Check whether you're affected
Find every system running phpmailer_project Phpmailer, Wordpress, Joomla! and compare its version with the affected versions.
Update to a fixed version
- Update Phpmailer to 5.2.18 or later.
If you can't update right away
Apply the workaround or mitigation in the vendor's advisory until you can update:
- seclists.org/fulldisclosure/2016/Dec/78
- github.com/PHPMailer/PHPMailer/releases/tag/v5.2.18
- github.com/PHPMailer/PHPMailer/wiki/About-the-CVE-2016-10033-and-CVE-2016-10045-vulnerabilities
- legalhackers.com/advisories/PHPMailer-Exploit-Remote-Code-Exec-CVE-2016-10033-Vuln.html
- www.exploit-db.com/exploits/40968/
Check for signs of compromise
Updating closes the flaw but doesn't remove an attacker who got in earlier. Review affected systems for unknown accounts, unusual logins and configuration changes, and use any indicators of compromise the vendor or CISA publish.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
| Affected products | Versions |
|---|---|
| phpmailer_project Phpmailer | < 5.2.18 |
| WordPress Wordpress | ≤ 4.7 |
| Joomla Joomla! | ≥ 1.5.0, ≤ 3.6.5 |
Weakness
- CWE-88 argument injection
Timeline
- Published:
- Added to CISA KEV:
- Last modified:
Frequently asked questions
Is CVE-2016-10033 being exploited?
Yes. CISA added CVE-2016-10033 to its Known Exploited Vulnerabilities catalog on 7 Jul 2025, which means there is evidence of exploitation in the wild. Its EPSS score estimates a 99.7% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2016-10033?
CVE-2016-10033 has a CVSS 3.1 base score of 9.8 (critical).
Which versions are affected?
Phpmailer Project Phpmailer (< 5.2.18), WordPress Wordpress (≤ 4.7), Joomla Joomla! (≥ 1.5.0, ≤ 3.6.5)
Is there a patch for CVE-2016-10033?
The official record links to vendor advisories or patches; see “What to do” above.
References
- seclists.org/fulldisclosure/2016/Dec/78(Mailing List, Patch, Third Party Advisory)
- github.com/PHPMailer/PHPMailer/releases/tag/v5.2.18(Patch, Vendor Advisory)
- github.com/PHPMailer/PHPMailer/wiki/About-the-CVE-2016-10033-and-CVE-2016-10045-vulnerabilities(Patch, Vendor Advisory)
- legalhackers.com/advisories/PHPMailer-Exploit-Remote-Code-Exec-CVE-2016-10033-Vuln.html(Exploit, Patch, Third Party Advisory)
- www.exploit-db.com/exploits/40968/(Exploit, Patch, Third Party Advisory)
- www.exploit-db.com/exploits/40970/(Exploit, Patch, Third Party Advisory)
- packetstormsecurity.com/files/140291/PHPMailer-Remote-Code-Execution.html(Exploit, Third Party Advisory, VDB Entry)
- packetstormsecurity.com/files/140350/PHPMailer-Sendmail-Argument-Injection.html(Exploit, Third Party Advisory, VDB Entry)
- www.rapid7.com/db/modules/exploit/multi/http/phpmailer_arg_injection(Exploit, Third Party Advisory)
- www.securityfocus.com/bid/95108(Broken Link, Exploit, Third Party Advisory)
- www.exploit-db.com/exploits/40969/(Exploit, Third Party Advisory, VDB Entry)
- www.exploit-db.com/exploits/40974/(Exploit, Third Party Advisory, VDB Entry)
- www.exploit-db.com/exploits/40986/(Exploit, Third Party Advisory, VDB Entry)
- www.exploit-db.com/exploits/41962/(Exploit, Third Party Advisory, VDB Entry)
- www.exploit-db.com/exploits/41996/(Exploit, Third Party Advisory, VDB Entry)
- www.exploit-db.com/exploits/42024/(Exploit, Third Party Advisory, VDB Entry)
- www.exploit-db.com/exploits/42221/(Exploit, Third Party Advisory, VDB Entry)
- www.securityfocus.com/archive/1/539963/100/0/threaded(Broken Link, Third Party Advisory, VDB Entry)
- www.securitytracker.com/id/1037533(Broken Link, Third Party Advisory, VDB Entry)
- developer.joomla.org/security-centre/668-20161205-phpmailer-security-advisory.html(Third Party Advisory)
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.