NetSight
critical9.8

CVE-2020-36326

PHPMailer 6.1.8 through 6.4.0 allows object injection through Phar Deserialization via addAttachment with a UNC pathname.

Impact

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.

Affected products

VendorProductAffected versions
Phpmailer ProjectPhpmailer
from 6.1.8 through 6.4.0
WordpressWordpress
from 3.7 before 3.7.36
from 3.8 before 3.8.36
from 3.9 before 3.9.34
from 4.0 before 4.0.33
from 4.1 before 4.1.33
from 4.2 before 4.2.30

Weakness classification

References