Skip to content
Emerging threatsCritical

CVE-2016-10045Phpmailer Command Injection

Remote code execution in PHPMailer

Published Dec 30, 2016 · Updated Oct 24, 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. A public exploit is reported by tracking sources, but no code link is listed yet.
  • 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.

Scores

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

Exploit maturity

Weaponized

ATLAS score

77/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Not listed

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

Weaponized

Public exploit code

6

Proof-of-concept links

In-the-wild evidence

1

Reports of active use

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

    Dec 30, 2016

  2. Last updated

    Oct 24, 2026

Weakness Type

  • CWE-77 Improper Neutralization of Special Elements used in a Command

References

15 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2016-10045 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

More vulnerabilities

Figures as of Dec 2, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.