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.
How to fix
- wordpress wordpress3.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 or later
- phpmailer/phpmailer6.4.1 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| phpmailer_project phpmailer | 6.1.8 ≤ v ≤ 6.4.0 | — |
| wordpress wordpress | 3.7 ≤ v < 3.7.36, 3.8 ≤ v < 3.8.36, 3.9 ≤ v < 3.9.34, 4.0 ≤ v < 4.0.33, 4.1 ≤ v < 4.1.33, 4.2 ≤ v < 4.2.30, 4.3 ≤ v < 4.3.26, 4.4 ≤ v < 4.4.25, 4.5 ≤ v < 4.5.24, 4.6 ≤ v < 4.6.21, 4.7 ≤ v < 4.7.21, 4.8 ≤ v < 4.8.17, 4.9 ≤ v < 4.9.18, 5.0 ≤ v < 5.0.13, 5.1 ≤ v < 5.1.10, 5.2 ≤ v < 5.2.11, 5.3 ≤ v < 5.3.8, 5.4 ≤ v < 5.4.6, 5.5 ≤ v < 5.5.5, 5.6 ≤ v < 5.6.4, 5.7 ≤ v < 5.7.2 | 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 |
| phpmailer/phpmailerPackagist | 6.1.8 ≤ v < 6.4.1 | 6.4.1 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.