← Vulnerability feed

Vulnerability record · CVE-2020-36326 · published 28 April 2021

CVE-2020-36326: Phpmailer project phpmailer deserialization of untrusted data vulnerability

Phpmailer Project · Phpmailer

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.

9.8 CVSS 3.1 Critical EPSS 3.1% · top 11.5% CWE-502 · Deserialization of untrusted data
9.8CVSS 3.1 base score, v2 7.5
3.1%EPSS exploitation probability, 30 days
NoNot in CISA KEV
2Affected product versions listed by NVD
6References
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2020-36326 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2016-10033PHPMailer isMail mailSend argument injection enables remote code executionPHPMailer before 5.2.18 fails to properly sanitize the Sender property in the mailSend function of the isMail transport, allowing a crafted backslash…KEVEPSS 100%analysed10.0CVE-2006-4028Wordpress vulnerabilityMultiple unspecified vulnerabilities in WordPress before 2.0.4 have unknown impact and remote attack vectors. NOTE: due to lack of details, it is not…EPSS 3.8%9.8CVE-2016-10045PHPMailer isMail transport argument injection enables remote code executionPHPMailer before 5.2.20 fails to properly neutralize shell metacharacters in the isMail transport, because escapeshellarg interacts incorrectly with …EPSS 98%analysed8.8CVE-2018-19296Phpmailer project phpmailer deserialization of untrusted data vulnerabilityPHPMailer before 5.2.27 and 6.x before 6.0.6 is vulnerable to an object injection attack.EPSS 2.2%8.1CVE-2021-3603Phpmailer project phpmailer inclusion from untrusted sphere vulnerabilityPHPMailer 6.4.1 and earlier contain a vulnerability that can result in untrusted code being called (if such code is injected into the host project's …EPSS 2.3%8.1CVE-2021-34551Phpmailer project phpmailer unrestricted file upload vulnerabilityPHPMailer before 6.5.0 on Windows allows remote code execution if lang_path is untrusted data and has a UNC pathname.EPSS 2.8%7.8CVE-2007-0539Wordpress vulnerabilityThe wp_remote_fopen function in WordPress before 2.1 allows remote attackers to cause a denial of service (bandwidth or thread consumption) via pingb…EPSS 3.6%7.8CVE-2007-0262Wordpress vulnerabilityWordPress 2.0.6, and 2.1Alpha 3 (SVN:4662), does not properly verify that the m parameter value has the string data type, which allows remote attacke…EPSS 2.6%

Source: NIST National Vulnerability Database (record CVE-2020-36326), CISA KEV, FIRST EPSS (scores of 2026-11-26). This page is refreshed as NVD updates the record.