Live threats

All CVEs / Phpmailer Project

CVE-2016-10045Phpmailer Project Phpmailer

Critical 9.8 No auth neededHigh EPSS

Priority
84
CVSS 3.1
9.8
EPSS
97.7%
probability of exploitation in 30 days · percentile 100
Auth required
No
Published
Dec 30, 2016
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-77
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

The isMail transport in PHPMailer before 5.2.20 might allow remote attackers to pass extra parameters to the mail command and consequently execute arbitrary code by leveraging improper interaction between the escapeshellarg function and internal escaping performed in the mail function in PHP. NOTE: this vulnerability exists because of an incorrect fix for CVE-2016-10033.

Original NVD text.

What to do

  1. Apply the vendor's security update for Phpmailer.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist phpmailer/phpmailer ≥ 5.0.0 < 5.2.20 5.2.20 composer require "phpmailer/phpmailer:^5.2.20"

Per OSV / GitHub Advisories (GHSA-4pc3-96mx-wwc8). Check the version in your lockfile before upgrading.

Affected products (CPE)

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

Official sources

References

Links published by the sources. Open them with care.