CVE-2020-36326
Object injection in PHPMailer/PHPMailer
Also known as BIT-phpmailer-2020-36326, BIT-wordpress-2020-36326, BIT-wordpress-multisite-2020-36326, GHSA-m298-fh5c-jc66
Mitigation
- Upgrade phpmailer/phpmailer to 6.4.1 or later.
Who should check
- Projects that depend on Packagist package phpmailer/phpmailer (>= 6.1.8, < 6.4.1)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- phpmailer/phpmailer >= 6.1.8, < 6.4.1
- Fixed in
- 6.4.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 9.8 (v3.1, NVD)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 3.09% chance of exploitation in 30 days (percentile 88, 2026-11-26)
- CWE
- CWE-502
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist phpmailer/phpmailer | >= 6.1.8, < 6.4.1 | 6.4.1 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2020-36326. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2020-36326.md Affected: phpmailer/phpmailer >= 6.1.8, < 6.4.1 Fixed in: 6.4.1 Steps: 1. Search this machine and project for phpmailer/phpmailer (Packagist), n/a: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KPU66INRFY5BQ3ESVPRUXJR4DXQAFJVT/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3B5WDPGUFNPG4NAZ6G4BZX43BKLAVA5B/
- https://github.com/PHPMailer/PHPMailer/security/advisories/GHSA-m298-fh5c-jc66
- https://nvd.nist.gov/vuln/detail/CVE-2020-36326
Other
- https://github.com/FriendsOfPHP/security-advisories/blob/master/phpmailer/phpmailer/CVE-2020-36326.yaml
- https://github.com/PHPMailer/PHPMailer
- https://github.com/PHPMailer/PHPMailer/releases/tag/v6.4.1
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3B5WDPGUFNPG4NAZ6G4BZX43BKLAVA5B
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KPU66INRFY5BQ3ESVPRUXJR4DXQAFJVT
FAQ
Is CVE-2020-36326 being exploited?
There is no confirmed exploitation: CVE-2020-36326 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 3.09% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2020-36326?
Critical: CVSS 9.8 (v3.1, scored by NVD). Remote, no login needed.
Which versions are affected by CVE-2020-36326?
phpmailer/phpmailer >= 6.1.8, < 6.4.1.
Is there a fix for CVE-2020-36326?
Yes. Fixed in 6.4.1. Upgrade phpmailer/phpmailer to 6.4.1 or later.
How do I check if I'm affected by CVE-2020-36326?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.