CVE-2020-36326Phpmailer Project Phpmailer
Critical 9.8 No auth needed
Follow: this CVE · Phpmailer Project · Phpmailer Project Phpmailer We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 3.2% probability of exploitation in 30 days · percentile 89
- Auth required
- No
- Published
- Apr 28, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-502
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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
- Apply the vendor's security update for Phpmailer.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | phpmailer/phpmailer |
≥ 6.1.8 < 6.4.1 |
6.4.1 |
composer require "phpmailer/phpmailer:^6.4.1" |
Per OSV / GitHub Advisories (GHSA-m298-fh5c-jc66). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| phpmailer_project | phpmailer | ≥ 6.1.8 ≤ 6.4.0 |
| wordpress | wordpress | ≥ 3.7 < 3.7.36 |
| wordpress | wordpress | ≥ 3.8 < 3.8.36 |
| wordpress | wordpress | ≥ 3.9 < 3.9.34 |
| wordpress | wordpress | ≥ 4.0 < 4.0.33 |
| wordpress | wordpress | ≥ 4.1 < 4.1.33 |
| wordpress | wordpress | ≥ 4.2 < 4.2.30 |
| wordpress | wordpress | ≥ 4.3 < 4.3.26 |
| wordpress | wordpress | ≥ 4.4 < 4.4.25 |
| wordpress | wordpress | ≥ 4.5 < 4.5.24 |
| wordpress | wordpress | ≥ 4.6 < 4.6.21 |
| wordpress | wordpress | ≥ 4.7 < 4.7.21 |
| wordpress | wordpress | ≥ 4.8 < 4.8.17 |
| wordpress | wordpress | ≥ 4.9 < 4.9.18 |
| wordpress | wordpress | ≥ 5.0 < 5.0.13 |
| wordpress | wordpress | ≥ 5.1 < 5.1.10 |
| wordpress | wordpress | ≥ 5.2 < 5.2.11 |
| wordpress | wordpress | ≥ 5.3 < 5.3.8 |
| wordpress | wordpress | ≥ 5.4 < 5.4.6 |
| wordpress | wordpress | ≥ 5.5 < 5.5.5 |
| wordpress | wordpress | ≥ 5.6 < 5.6.4 |
| wordpress | wordpress | ≥ 5.7 < 5.7.2 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org