Critical severity9.8NVD Advisory· Published Apr 28, 2021· Updated Jun 17, 2026
CVE-2020-36326
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
phpmailer/phpmailerPackagist | >= 6.1.8, < 6.4.1 | 6.4.1 |
Affected products
7- cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*Range: >=3.7,<3.7.36
cpe:2.3:a:phpmailer_project:phpmailer:*:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:a:phpmailer_project:phpmailer:*:*:*:*:*:*:*:*range: >=6.1.8,<=6.4.0
- (no CPE)
- osv-coords4 versionspkg:bitnami/wordpresspkg:bitnami/wordpress-multisitepkg:bitnami/phpmailerpkg:composer/phpmailer/phpmailer
>= 3.7.0, < 3.7.36+ 3 more
- (no CPE)range: >= 3.7.0, < 3.7.36
- (no CPE)range: >= 3.7.0, < 3.7.36
- (no CPE)range: >= 6.1.8, < 6.4.1
- (no CPE)range: >= 6.1.8, < 6.4.1
Patches
Vulnerability mechanics
References
10- github.com/PHPMailer/PHPMailer/commit/e2e07a355ee8ff36aba21d0242c5950c56e4c6f9nvdPatchThird Party AdvisoryWEB
- github.com/advisories/GHSA-m298-fh5c-jc66ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2020-36326ghsaADVISORY
- github.com/FriendsOfPHP/security-advisories/blob/master/phpmailer/phpmailer/CVE-2020-36326.yamlghsaWEB
- github.com/PHPMailer/PHPMailer/releases/tag/v6.4.1ghsaWEB
- github.com/PHPMailer/PHPMailer/security/advisories/GHSA-m298-fh5c-jc66ghsaWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/3B5WDPGUFNPG4NAZ6G4BZX43BKLAVA5BghsaWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/KPU66INRFY5BQ3ESVPRUXJR4DXQAFJVTghsaWEB
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3B5WDPGUFNPG4NAZ6G4BZX43BKLAVA5B/nvd
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KPU66INRFY5BQ3ESVPRUXJR4DXQAFJVT/nvd
News mentions
0No linked articles in our index yet.