Skip to content

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

ProductAffected versionsFixed 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