Skip to content

CVE-2021-3603 Inclusion of Functionality from Untrusted Control Sphere in PHPMailer/PHPMailer

HighCVSS 8.1 EPSS 2.3% PoC
Published
Updated
Exploit status
Proof-of-concept only

Description

PHPMailer 6.4.1 and earlier contain a vulnerability that can result in untrusted code being called (if such code is injected into the host project's scope by other means). If the $patternselect parameter to validateAddress() is set to 'php' (the default, defined by PHPMailer::$validator), and the global namespace contains a function called php, it will be called in preference to the built-in validator of the same name. Mitigated in PHPMailer 6.5.0 by denying the use of simple strings as validator function names.

Affected products

ProductAffected versionsFixed in
phpmailer/phpmailer(Packagist) < 6.5.0 6.5.0
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.20 No fix listed
phpmailer/phpmailer(Packagist) = v5.2.21 No fix listed
phpmailer/phpmailer(Packagist) = v5.2.22 No fix listed
phpmailer/phpmailer(Packagist) = v5.2.23 No fix listed
phpmailer/phpmailer(Packagist) = v5.2.24 No fix listed
phpmailer/phpmailer(Packagist) = v5.2.25 No fix listed
phpmailer/phpmailer(Packagist) = v5.2.26 No fix listed
phpmailer/phpmailer(Packagist) = v5.2.27 No fix listed
phpmailer/phpmailer(Packagist) = v5.2.28 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
Show 36 more
ProductAffected versionsFixed in
phpmailer/phpmailer(Packagist) = v5.2.8 No fix listed
phpmailer/phpmailer(Packagist) = v5.2.9 No fix listed
phpmailer/phpmailer(Packagist) = v6.0.0 No fix listed
phpmailer/phpmailer(Packagist) = v6.0.0rc1 No fix listed
phpmailer/phpmailer(Packagist) = v6.0.0rc2 No fix listed
phpmailer/phpmailer(Packagist) = v6.0.0rc3 No fix listed
phpmailer/phpmailer(Packagist) = v6.0.0rc4 No fix listed
phpmailer/phpmailer(Packagist) = v6.0.0rc5 No fix listed
phpmailer/phpmailer(Packagist) = v6.0.1 No fix listed
phpmailer/phpmailer(Packagist) = v6.0.2 No fix listed
phpmailer/phpmailer(Packagist) = v6.0.3 No fix listed
phpmailer/phpmailer(Packagist) = v6.0.4 No fix listed
phpmailer/phpmailer(Packagist) = v6.0.5 No fix listed
phpmailer/phpmailer(Packagist) = v6.0.6 No fix listed
phpmailer/phpmailer(Packagist) = v6.0.7 No fix listed
phpmailer/phpmailer(Packagist) = v6.1.0 No fix listed
phpmailer/phpmailer(Packagist) = v6.1.1 No fix listed
phpmailer/phpmailer(Packagist) = v6.1.2 No fix listed
phpmailer/phpmailer(Packagist) = v6.1.3 No fix listed
phpmailer/phpmailer(Packagist) = v6.1.4 No fix listed
phpmailer/phpmailer(Packagist) = v6.1.5 No fix listed
phpmailer/phpmailer(Packagist) = v6.1.6 No fix listed
phpmailer/phpmailer(Packagist) = v6.1.7 No fix listed
phpmailer/phpmailer(Packagist) = v6.1.8 No fix listed
phpmailer/phpmailer(Packagist) = v6.2.0 No fix listed
phpmailer/phpmailer(Packagist) = v6.3.0 No fix listed
phpmailer/phpmailer(Packagist) = v6.4.0 No fix listed
phpmailer/phpmailer(Packagist) = v6.4.1 No fix listed
debian/libphp-phpmailer(Debian:12) < 6.6.3-1 6.6.3-1
debian/libphp-phpmailer(Debian:14) < 6.6.3-1 6.6.3-1
debian/libphp-phpmailer(Debian:13) < 6.6.3-1 6.6.3-1
ubuntu/libphp-phpmailer(Ubuntu:22.04) < 6.2.0-2ubuntu0.1~esm1 6.2.0-2ubuntu0.1~esm1
phpmailer project phpmailer <= 6.4.1 No fix listed
fedoraproject fedora = 33 No fix listed
fedoraproject fedora = 34 No fix listed
phpmailer/phpmailer < 6.5.0 6.5.0

References