PHPMailer Command Injection Vulnerability. CISA added it to its list of flaws being exploited in the wild on 7 Jul 2025.
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, Known Exploited Vulnerabilities catalog
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
If you run PHP PHPMailer, treat this as urgent: attackers are already using it. If you're not sure whether you run it anywhere, start there.