CVE-2020-36326: PHPMailer 6.1.8 through 6.4.0 allows object injection through Phar Deserialization via addAttachment with a UN
CVE-2020-36326 is a critical-severity flaw (CVSS 9.8) affecting phpmailer, wordpress. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Critical severity
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 3.1% (top 12%) |
| CISA exploited list | No |
| Weakness | CWE-502 |
| Published | 2021-04-28 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2020-36326?
phpmailer: upgrade to newer than 6.4.0; wordpress: upgrade to 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. Exact commands for each OS are on this page.
Is CVE-2020-36326 being exploited?
CVE-2020-36326 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2020-36326 affect?
CVE-2020-36326 affects phpmailer, wordpress. Severity is critical (CVSS 9.8). 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
How urgent is CVE-2020-36326?
Priority 61/100. Critical severity; Remotely exploitable, no login, no user action
Software pages
Related CVEs
- CVE-2021-3603 HIGH 8.1 UPGRADE MITIGATE PHPMailer 6.4.1 and earlier contain a vulnerability that can result in untrusted code being called (if such co
- CVE-2021-34551 HIGH 8.1 UPGRADE MITIGATE PHPMailer before 6.5.0 on Windows allows remote code execution if lang_path is untrusted data and has a UNC pa
- CVE-2020-13625 HIGH 7.5 UPGRADE MITIGATE PHPMailer before 6.1.6 contains an output escaping bug when the name of a file attachment contains a double qu
- CVE-2018-19296 HIGH 8.8 UPGRADE MITIGATE PHPMailer before 5.2.27 and 6.x before 6.0.6 is vulnerable to an object injection attack.
- CVE-2017-5223 MEDIUM 5.5 UPGRADE An issue was discovered in PHPMailer before 5.2.22