Name | CVE-2020-36326 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Debian Bugs | 988732 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
libphp-phpmailer (PTS) | bullseye | 6.2.0-2 | fixed |
bookworm | 6.6.3-1 | fixed | |
sid, trixie | 6.9.1-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
libphp-phpmailer | source | stretch | (not affected) | |||
libphp-phpmailer | source | buster | (not affected) | |||
libphp-phpmailer | source | (unstable) | 6.2.0-2 | 988732 |
[buster] - libphp-phpmailer <not-affected> (Regression introduced in 6.1.8)
[stretch] - libphp-phpmailer <not-affected> (Regression introduced in 6.1.8)
Introduced by: https://github.com/PHPMailer/PHPMailer/commit/e2e07a355ee8ff36aba21d0242c5950c56e4c6f9 (6.1.8)
Fixed by: https://github.com/PHPMailer/PHPMailer/commit/26f2848d3bbb57add5f34a467a1e3b2f9ce5cd2a (v6.4.1)
Also backport: https://github.com/PHPMailer/PHPMailer/commit/7f267fb4aadfcf62e3ddc50494c469c6b9c4405a (v6.4.1)