CVE-2016-10033
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.
Severity
CRITICAL
CVSS v3
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
99.714%
chance of exploitation in the next 30 days
among the highest of scored CVEs · 2026-11-17
CISA KEV
Listed
added 2025-07-07
Public exploit code
Yes
Exploit references (NVD and CNA): 14
Metasploit modules: 2
Nuclei templates: 1
Exploit-DB: 9
Weakness
- CWE-88: Improper Neutralization of Argument Delimiters in a Command
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | PHPMailer Command Injection Vulnerability |
|---|---|
| Vendor / product | PHP / PHPMailer |
| Date added | 2025-07-07 |
| Federal remediation due date | 2025-07-28 |
| 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. |
| Known ransomware campaign use | Unknown |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | yes |
| Technical impact | total |
| Scored | 2025-07-17 |
Timeline
- 2016-12-25First Exploit-DB entry (EDB-ID 40970)5 days before publication
- 2016-12-30Published by the CNA19:00 UTC
- 2020-03-05GitHub advisory published (GHSA-5f37-gxvh-23v6)1161 days after publication
- 2025-07-07Added to the CISA KEV catalog3111 days after publication
- 2025-07-17CISA SSVC decision recorded3121 days after publication
Exploit and advisory records
| Exploit-DB | Type | Platform | Published | EDB-verified |
|---|---|---|---|---|
| EDB-ID 42024 | remote | php | 2017-05-17 | yes |
| EDB-ID 40968 | webapps | php | 2016-12-26 | yes |
| EDB-ID 42221 | webapps | php | 2017-06-21 | no |
| EDB-ID 41996 | remote | php | 2017-05-11 | no |
| EDB-ID 41962 | webapps | linux | 2017-05-03 | no |
Nuclei templates:
- CVE-2016-10033: WordPress PHPMailer < 5.2.18 - Remote Code Execution
GitHub advisory GHSA-5f37-gxvh-23v6, affected packages:
| Ecosystem | Package | Vulnerable range | Patched |
|---|---|---|---|
| Packagist | phpmailer/phpmailer | >= 5.0.0, < 5.2.18 | 5.2.18 |
Affected products
| Vendor | Product |
|---|---|
| joomla | joomla\! |
| phpmailer_project | phpmailer |
| wordpress | wordpress |
References
- http://seclists.org/fulldisclosure/2016/Dec/78
- https://github.com/PHPMailer/PHPMailer/releases/tag/v5.2.18
- https://github.com/PHPMailer/PHPMailer/wiki/About-the-CVE-2016-10033-and-CVE-2016-10045-vulnerabilities
- https://legalhackers.com/advisories/PHPMailer-Exploit-Remote-Code-Exec-CVE-2016-10033-Vuln.html
- https://www.exploit-db.com/exploits/40968/
- https://www.exploit-db.com/exploits/40970/
- http://packetstormsecurity.com/files/140291/PHPMailer-Remote-Code-Execution.html
- http://packetstormsecurity.com/files/140350/PHPMailer-Sendmail-Argument-Injection.html
- http://www.rapid7.com/db/modules/exploit/multi/http/phpmailer_arg_injection
- http://www.securityfocus.com/bid/95108
- https://www.exploit-db.com/exploits/40969/
- https://www.exploit-db.com/exploits/40974/
- https://www.exploit-db.com/exploits/40986/
- https://www.exploit-db.com/exploits/41962/
- https://www.exploit-db.com/exploits/41996/
- https://www.exploit-db.com/exploits/42024/
- https://www.exploit-db.com/exploits/42221/
- http://www.securityfocus.com/archive/1/539963/100/0/threaded
- http://www.securitytracker.com/id/1037533
- https://developer.joomla.org/security-centre/668-20161205-phpmailer-security-advisory.html
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2016-10033'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2016-10033'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2016-10033'curl 'https://api.contrastcyber.com/cve_products/CVE-2016-10033'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2016-10033'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).