Live threats

All CVEs / PHP

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.

Source text, unmodified. NVD.

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.

Source text, unmodified. CISA KEV.

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.

  1. Apply the vendor's security update for PHPMailer.
  2. CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was July 28, 2025.
  3. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
  4. Check logs for signs of earlier exploitation.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
phpmailer_projectphpmailer< 5.2.18
wordpresswordpress≤ 4.7
joomlajoomla!≥ 1.5.0 ≤ 3.6.5

Official sources

References

Links published by the sources. Open them with care.