Remote code execution in PHPMailer
Actively exploited in the wild
Added to CISA's Known Exploited Vulnerabilities catalog on Jul 7, 2025. US federal agencies must patch by Jul 28, 2025.
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| phpmailer/phpmailer Packagist |
|
|
Original 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.
From the CVE record · mitre