CVE-2016-10045 Remote code execution in PHPMailer
CriticalCVSS 9.8
EPSS 97.7%
Framework module
Public exploit
PoC
- Published
- Updated
- Exploit status
- Public exploit available
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
| Product | Affected versions | Fixed in |
|---|---|---|
| phpmailer/phpmailer(Packagist) | >= 5.0.0, < 5.2.20 | 5.2.20 |
| phpmailer/phpmailer(Packagist) | = v5.2.10 | No fix listed |
| phpmailer/phpmailer(Packagist) | = v5.2.11 | No fix listed |
| phpmailer/phpmailer(Packagist) | = v5.2.12 | No fix listed |
| phpmailer/phpmailer(Packagist) | = v5.2.13 | No fix listed |
| phpmailer/phpmailer(Packagist) | = v5.2.14 | No fix listed |
| phpmailer/phpmailer(Packagist) | = v5.2.15 | No fix listed |
| phpmailer/phpmailer(Packagist) | = v5.2.16 | No fix listed |
| phpmailer/phpmailer(Packagist) | = v5.2.17 | No fix listed |
| phpmailer/phpmailer(Packagist) | = v5.2.18 | No fix listed |
| phpmailer/phpmailer(Packagist) | = v5.2.19 | No fix listed |
| phpmailer/phpmailer(Packagist) | = v5.2.2 | No fix listed |
| phpmailer/phpmailer(Packagist) | = v5.2.4 | No fix listed |
| phpmailer/phpmailer(Packagist) | = v5.2.5 | No fix listed |
| phpmailer/phpmailer(Packagist) | = v5.2.6 | No fix listed |
| phpmailer/phpmailer(Packagist) | = v5.2.7 | No fix listed |
| phpmailer/phpmailer(Packagist) | = v5.2.8 | No fix listed |
| phpmailer/phpmailer(Packagist) | = v5.2.9 | No fix listed |
| phpmailer project phpmailer | < 5.2.20 | 5.2.20 |
| WordPress | <= 4.7 | No fix listed |
| joomla | >= 1.5.0, <= 3.6.5 | No fix listed |
| alpine/php-phpmailer(Alpine:v3.2) | < 5.2.4-r0 | 5.2.4-r0 |
| alpine/php-phpmailer(Alpine:v3.3) | < 5.2.4-r0 | 5.2.4-r0 |
| alpine/php5-phpmailer(Alpine:v3.4) | < 5.2.0-r1 | 5.2.0-r1 |
| alpine/php5-phpmailer(Alpine:v3.5) | < 5.2.4-r1 | 5.2.4-r1 |
References
- github.com vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- developer.joomla.org third-party-advisory
- github.com exploit
- github.com product
- github.com patch vendor-advisory
- github.com exploit patch vendor-advisory
- legalhackers.com exploit patch third-party-advisory
- 40969 exploit third-party-advisory vdb-entry
- 40986 exploit third-party-advisory vdb-entry
- 42221 exploit third-party-advisory vdb-entry
- [oss-security] 20161228 Re: PHPMailer < 5.2.18 Remote Code Execution [updated advisory] [CVE-2016-10033] mailing-list patch
- packetstormsecurity.com exploit third-party-advisory vdb-entry
- packetstormsecurity.com exploit third-party-advisory vdb-entry
- 20161227 PHPMailer < 5.2.20 Remote Code Execution PoC 0day Exploit (CVE-2016-10045) (Bypass of the CVE-2016-1033 patch) mailing-list patch third-party-advisory
- www.rapid7.com exploit third-party-advisory
- Debian Security Tracker CVE-2016-10045 vendor-advisory
- 20161228 PHPMailer < 5.2.20 Remote Code Execution PoC 0day Exploit (CVE-2016-10045) (Bypass of the CVE-2016-1033 patch) mailing-list third-party-advisory vdb-entry
- 95130 exploit third-party-advisory vdb-entry
- 1037533 third-party-advisory vdb-entry
- github.com
- security.alpinelinux.org vendor-advisory