DescriptionPHPMailer 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs988732

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libphp-phpmailer (PTS)buster6.0.6-0.1fixed
trixie, sid6.8.1-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libphp-phpmailersourcestretch(not affected)
libphp-phpmailersourcebuster(not affected)


[buster] - libphp-phpmailer <not-affected> (Regression introduced in 6.1.8)
[stretch] - libphp-phpmailer <not-affected> (Regression introduced in 6.1.8)
Introduced by: (6.1.8)
Fixed by: (v6.4.1)
Also backport: (v6.4.1)

Search for package or bug name: Reporting problems