CVE-2016-10033: PHPMailer Command Injection Vulnerability

Critical severity, CVSS 9.8. Actively exploited: in CISA KEV since 2025-07-07. EPSS: >99% probability of exploitation activity in the next 30 days.

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.

What to do

CISA's required action (US federal agencies, by 2025-07-28): Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

The record states a fixed version for the versions it affects. If you run one, update to it.

  • PHPMailer Project PHPMailer, before 5.2.18: fixed in 5.2.18

Affected products

Affected packages

Published 2016-12-30. Last modified 2026-06-17.