CVE-2020-36326: PHPMailer Project PHPMailer
Critical severity, CVSS 9.8. EPSS: 3.1% probability of exploitation activity in the next 30 days.
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.
What to do
The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.
- WordPress, from 3.7, before 3.7.36: fixed in 3.7.36
- WordPress, from 3.8, before 3.8.36: fixed in 3.8.36
- WordPress, from 3.9, before 3.9.34: fixed in 3.9.34
- WordPress, from 4.0, before 4.0.33: fixed in 4.0.33
- WordPress, from 4.1, before 4.1.33: fixed in 4.1.33
- WordPress, from 4.2, before 4.2.30: fixed in 4.2.30
- WordPress, from 4.3, before 4.3.26: fixed in 4.3.26
- WordPress, from 4.4, before 4.4.25: fixed in 4.4.25
- WordPress, from 4.5, before 4.5.24: fixed in 4.5.24
- WordPress, from 4.6, before 4.6.21: fixed in 4.6.21
- and 11 more
Affected products
- PHPMailer Project PHPMailer: from 6.1.8, up to and including 6.4.0
- WordPress WordPress: from 3.7, before 3.7.36 (fixed in 3.7.36); from 3.8, before 3.8.36 (fixed in 3.8.36); from 3.9, before 3.9.34 (fixed in 3.9.34); from 4.0, before 4.0.33 (fixed in 4.0.33); from 4.1, before 4.1.33 (fixed in 4.1.33); from 4.2, before 4.2.30 (fixed in 4.2.30); …
Affected packages
- phpmailer/phpmailer (Packagist)
Published 2021-04-28. Last modified 2026-06-17.