Skip to content

CVE-2020-36326 Object injection in PHPMailer/PHPMailer

CriticalCVSS 9.8 EPSS 3.1% PoC
Published
Updated
Exploit status
Proof-of-concept only
Technology
PHPWordPressUbuntuDebian

Description

PHPMailer 6.1.8 through 6.4.0 allows object injection through Phar Deserialization via addAttachment with a UNC pathname. NOTE: this is similar to CVE-2018-19296, but arose because 6.1.8 fixed a functionality problem in which UNC pathnames were always considered unreadable by PHPMailer, even in safe contexts. As an unintended side effect, this fix eliminated the code that blocked addAttachment exploitation.

Upgrade path

7 packages: 7 fixed.

PackageAffectedFixed inStatus
debian/libphp-phpmailer(Debian 12) < 6.2.0-2 6.2.0-2 Fixed
debian/libphp-phpmailer(Debian 13) < 6.2.0-2 6.2.0-2 Fixed
debian/libphp-phpmailer(Debian 14) < 6.2.0-2 6.2.0-2 Fixed
phpmailer project phpmailer >= 6.1.8, <= 6.4.0 after 6.4.0 Fixed
phpmailer/phpmailer(Packagist) = v6.1.8; = v6.2.0; = v6.3.0; = v6.4.0 +1 more 6.4.1 Fixed
ubuntu/libphp-phpmailer(Ubuntu 22.04) < 6.2.0-2 6.2.0-2 Fixed
WordPress >= 3.7, < 3.7.36; >= 3.8, < 3.8.36; >= 3.9, < 3.9.34; >= 4.0, < 4.0.33 +17 more 3.7.36, 3.8.36, 3.9.34, 4.0.33, 4.1.33, 4.2.30, 4.3.26, 4.4.25, 4.5.24, 4.6.21, 4.7.21, 4.8.17, 4.9.18, 5.0.13, 5.1.10, 5.2.11, 5.3.8, 5.4.6, 5.5.5, 5.6.4, 5.7.2 Fixed

Affected products

ProductAffected versionsFixed in
phpmailer/phpmailer(Packagist) >= 6.1.8, < 6.4.1 6.4.1
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
debian/libphp-phpmailer(Debian:12) < 6.2.0-2 6.2.0-2
debian/libphp-phpmailer(Debian:14) < 6.2.0-2 6.2.0-2
debian/libphp-phpmailer(Debian:13) < 6.2.0-2 6.2.0-2
phpmailer project phpmailer >= 6.1.8, <= 6.4.0 No fix listed
WordPress >= 3.7, < 3.7.36 3.7.36
WordPress >= 3.8, < 3.8.36 3.8.36
WordPress >= 3.9, < 3.9.34 3.9.34
WordPress >= 4.0, < 4.0.33 4.0.33
WordPress >= 4.1, < 4.1.33 4.1.33
WordPress >= 4.2, < 4.2.30 4.2.30
WordPress >= 4.3, < 4.3.26 4.3.26
WordPress >= 4.4, < 4.4.25 4.4.25
WordPress >= 4.5, < 4.5.24 4.5.24
WordPress >= 4.6, < 4.6.21 4.6.21
WordPress >= 4.7, < 4.7.21 4.7.21
WordPress >= 4.8, < 4.8.17 4.8.17
WordPress >= 4.9, < 4.9.18 4.9.18
WordPress >= 5.0, < 5.0.13 5.0.13
WordPress >= 5.1, < 5.1.10 5.1.10
WordPress >= 5.2, < 5.2.11 5.2.11
Show 6 more
ProductAffected versionsFixed in
WordPress >= 5.3, < 5.3.8 5.3.8
WordPress >= 5.4, < 5.4.6 5.4.6
WordPress >= 5.5, < 5.5.5 5.5.5
WordPress >= 5.6, < 5.6.4 5.6.4
WordPress >= 5.7, < 5.7.2 5.7.2
ubuntu/libphp-phpmailer(Ubuntu:22.04) < 6.2.0-2 6.2.0-2

References