CVE-2016-10033PHPMailer
Command Injection in PHPMailer via Sender Parameter
Critical 9.8 KEV No auth neededHigh EPSS
- Priority
- 84
- CVSS 3.1
- 9.8
- EPSS
- 99.7% probability of exploitation in 30 days · percentile 100
- Auth required
- No
- In KEV since
- Jul 7, 2025
- CISA deadline
- Jul 28, 2025
- Ransomware use
- Unknown
- Published
- Dec 30, 2016
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-88
- SSVC (CISA)
- Exploitation: active · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
PHPMailer before version 5.2.18 allows remote attackers to execute arbitrary code by injecting a backslash double quote in the Sender property, which passes extra parameters to the mail command. The vulnerability also affects WordPress up to 4.7 and Joomla! up to 3.6.5. CISA has confirmed active exploitation.
AI-generated summary (Claude) based on NVD and CISA data. Not reviewed yet: check the details in the vendor advisory.
Show the original NVD text
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.
Exploitation confirmed by 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.
Action required by CISA: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
What to do
Patch available · fixed versions: 5.2.18
Update PHPMailer to version 5.2.18 or later. If using WordPress, update to 4.8 or later. For Joomla!, update to 3.7.0 or later.
Vendor advisory · github.com ↗
AI-generated from public data; not reviewed.
- Apply the vendor's security update for PHPMailer.
- CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was July 28, 2025.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
- Check logs for signs of earlier exploitation.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | phpmailer/phpmailer |
≥ 5.0.0 < 5.2.18 |
5.2.18 |
composer require "phpmailer/phpmailer:^5.2.18" |
Per OSV / GitHub Advisories (GHSA-5f37-gxvh-23v6). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| phpmailer_project | phpmailer | < 5.2.18 |
| wordpress | wordpress | ≤ 4.7 |
| joomla | joomla! | ≥ 1.5.0 ≤ 3.6.5 |
Official sources
References
Links published by the sources. Open them with care.
- packetstormsecurity.com Exploit Third Party Advisory VDB Entry
- packetstormsecurity.com Exploit Third Party Advisory VDB Entry
- seclists.org Mailing List Patch Third Party Advisory
- www.rapid7.com Exploit Third Party Advisory
- www.securityfocus.com Broken Link Third Party Advisory VDB Entry
- www.securityfocus.com Broken Link Exploit Third Party Advisory
- www.securitytracker.com Broken Link Third Party Advisory VDB Entry
- developer.joomla.org Third Party Advisory
- github.com Patch Vendor Advisory
- github.com Patch Vendor Advisory
- legalhackers.com Exploit Patch Third Party Advisory
- www.drupal.org Third Party Advisory
- www.exploit-db.com Exploit Patch Third Party Advisory
- www.exploit-db.com Exploit Third Party Advisory VDB Entry
- www.exploit-db.com Exploit Patch Third Party Advisory
- www.exploit-db.com Exploit Third Party Advisory VDB Entry
- www.exploit-db.com Exploit Third Party Advisory VDB Entry
- www.exploit-db.com Exploit Third Party Advisory VDB Entry
- www.exploit-db.com Exploit Third Party Advisory VDB Entry
- www.exploit-db.com Exploit Third Party Advisory VDB Entry
- www.exploit-db.com Exploit Third Party Advisory VDB Entry
- www.cisa.gov US Government Resource