Skip to content
Vulnerability Intelligence

CVE-2016-10045

CriticalPublic exploit

Remote code execution in PHPMailer

Published Mar 5, 2020 · Updated Jul 8, 2026 · Also known as ALPINE-CVE-2016-10045, GHSA-4pc3-96mx-wwc8, UBUNTU-CVE-2016-10045

Key Facts

Patch immediately
  • CVE-2016-10045 is a critical-severity vulnerability (CVSS 9.8 v3.1) affecting Joomla\!, Phpmailer (Phpmailer Project), Wordpress and 4 more products.
  • It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
  • EPSS estimates a 98% probability of exploitation in the next 30 days.
  • Fixed versions are available, including Joomla\! 3.6.5, libphp-phpmailer 5.2.14+dfsg-1ubuntu0.1~esm1, libphp-phpmailer 5.2.14+dfsg-2.3+deb9u2ubuntu0.1~esm1.
  • Brandefense priority: patch immediately, because it is very likely to be exploited soon.

CVSS v3.1

9.8

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS (30-day exploit likelihood)

98%

Higher than 99.9% of all scored CVEs

Exploited in the wild

No known

Not in a known-exploited catalog

Public exploit code

Available

Proof-of-concept or weaponized module

Get the full CVE-2016-10045 brief as a PDF

Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.

Description

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.

Affected Products

21 affected entries in total
ProductAffected versionsFixed in
Joomla\!JoomlaSee advisory3.6.5
PhpmailerPhpmailer ProjectSee advisory5.2.20
WordpressWordpressSee advisory4.7
php5-phpmaileralpineSee advisory5.2.0-r1
php-phpmaileralpineSee advisory5.2.4-r0
2 more affected products in the full CVE brief

Patched Releases

Joomla\!

3.6.5

libphp-phpmailer

5.2.14+dfsg-1ubuntu0.1~esm1, 5.2.14+dfsg-2.3+deb9u2ubuntu0.1~esm1, 6.0.6-0.1ubuntu0.1~esm1, 6.2.0-2ubuntu0.1~esm1

php-phpmailer

5.2.4-r0

php5-phpmailer

5.2.0-r1, 5.2.4-r1

Phpmailer

5.2.20

phpmailer/phpmailer

5.2.20

Wordpress

4.7.1-1, 4.7

Timeline

  1. Publicly disclosed

    Mar 5, 2020

  2. Last updated

    Jul 8, 2026

Weakness Type

  • CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')

References

15 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2016-10045 Running On Your Attack Surface?

Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.

Request A Demo