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
Advisories And Exploit References
- advisoryhttps://github.com/FriendsOfPHP/security-advisories/blob/master/phpmailer/phpmailer/CVE-2016-10045.yaml
- advisoryhttps://github.com/PHPMailer/PHPMailer/wiki/About-the-CVE-2016-10033-and-CVE-2016-10045-vulnerabilities
- advisoryhttps://legalhackers.com/advisories/PHPMailer-Exploit-Remote-Code-Exec-CVE-2016-10045-Vuln-Patch-Bypass.html
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2016-10045
- advisoryhttps://security.alpinelinux.org/vuln/CVE-2016-10045
- advisoryhttps://ubuntu.com/security/CVE-2016-10045
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| Product | Affected versions | Fixed in |
|---|---|---|
| Joomla\!Joomla | See advisory | 3.6.5 |
| PhpmailerPhpmailer Project | See advisory | 5.2.20 |
| WordpressWordpress | See advisory | 4.7 |
| php5-phpmaileralpine | See advisory | 5.2.0-r1 |
| php-phpmaileralpine | See advisory | 5.2.4-r0 |
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
Publicly disclosed
Dec 30, 2016
Last updated
Oct 24, 2026
Weakness Type
- CWE-77 Improper Neutralization of Special Elements used in a Command
References
- advisorygithub.com · CVE-2016-10045
- advisorygithub.com · CVE-2016-10033
- advisorylegalhackers.com · CVE-2016-10045
- advisorynvd.nist.gov · CVE-2016-10045
- advisorysecurity.alpinelinux.org · CVE-2016-10045
FAQ
Common Questions.
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.
Affected: Joomla\!; Phpmailer (Phpmailer Project); Wordpress, among others. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
A public exploit is reported by tracking sources, but no code link is listed yet.
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.
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