# CVE-2020-36326: Object injection in PHPMailer/PHPMailer

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.18%, higher than 88% of CVEs (2026-12-01)
- Published: 2021-04-28T02:21:53.000Z
- Modified: 2026-09-08T08:48:24.679Z
- Also known as: GHSA-m298-fh5c-jc66, BIT-PHPMAILER-2020-36326, BIT-WORDPRESS-2020-36326, BIT-WORDPRESS-MULTISITE-2020-36326
- Weaknesses: CWE-502, CWE-641
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- phpmailer/phpmailer (Packagist): from 6.1.8 before 6.4.1
- phpmailer_project phpmailer: from 6.1.8 up to 6.4.0
- wordpress wordpress: from 3.7 before 3.7.36; from 3.8 before 3.8.36; from 3.9 before 3.9.34; from 4.0 before 4.0.33; from 4.1 before 4.1.33; from 4.2 before 4.2.30; from 4.3 before 4.3.26; from 4.4 before 4.4.25; from 4.5 before 4.5.24; from 4.6 before 4.6.21; from 4.7 before 4.7.21; from 4.8 before 4.8.17; and 9 more
- phpmailer (Bitnami): from 6.1.8 before 6.4.1
- wordpress (Bitnami): from 3.7.0 before 3.7.36; from 3.8.0 before 3.8.36; from 3.9.0 before 3.9.34; from 4.0.0 before 4.0.33; from 4.1.0 before 4.1.33; from 4.2.0 before 4.2.30; from 4.3.0 before 4.3.26; from 4.4.0 before 4.4.25; from 4.5.0 before 4.5.24; from 4.6.0 before 4.6.21; from 4.7.0 before 4.7.21; from 4.8.0 before 4.8.17; and 9 more
- wordpress-multisite (Bitnami): from 3.7.0 before 3.7.36; from 3.8.0 before 3.8.36; from 3.9.0 before 3.9.34; from 4.0.0 before 4.0.33; from 4.1.0 before 4.1.33; from 4.2.0 before 4.2.30; from 4.3.0 before 4.3.26; from 4.4.0 before 4.4.25; from 4.5.0 before 4.5.24; from 4.6.0 before 4.6.21; from 4.7.0 before 4.7.21; from 4.8.0 before 4.8.17; and 9 more

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/PHPMailer/PHPMailer/commit/e2e07a355ee8ff36aba21d0242c5950c56e4c6f9> (advisory, patch, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KPU66INRFY5BQ3ESVPRUXJR4DXQAFJVT/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3B5WDPGUFNPG4NAZ6G4BZX43BKLAVA5B/> (vendor-advisory, web)
- <https://github.com/PHPMailer/PHPMailer/security/advisories/GHSA-m298-fh5c-jc66> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-36326> (advisory, web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/phpmailer/phpmailer/CVE-2020-36326.yaml> (web)
- <https://github.com/PHPMailer/PHPMailer> (package)
- <https://github.com/PHPMailer/PHPMailer/releases/tag/v6.4.1> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3B5WDPGUFNPG4NAZ6G4BZX43BKLAVA5B> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KPU66INRFY5BQ3ESVPRUXJR4DXQAFJVT> (web)

## Sources

- CVE List: [CVE-2020-36326](https://www.cve.org/CVERecord?id=CVE-2020-36326), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-m298-fh5c-jc66](https://github.com/advisories/GHSA-m298-fh5c-jc66), CC-BY-4.0, modified 2026-07-21
- NVD: [CVE-2020-36326](https://nvd.nist.gov/vuln/detail/CVE-2020-36326), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-PHPMAILER-2020-36326](https://osv.dev/vulnerability/BIT-PHPMAILER-2020-36326), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-WORDPRESS-2020-36326](https://osv.dev/vulnerability/BIT-WORDPRESS-2020-36326), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-WORDPRESS-MULTISITE-2020-36326](https://osv.dev/vulnerability/BIT-WORDPRESS-MULTISITE-2020-36326), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2020-36326 · Whole record: https://cve.day/CVE-2020-36326.json · Rebuilt by cve.day 2026-11-25T22:57:57.810Z
