Live threats

All CVEs / Phpmailer Project

CVE-2020-36326Phpmailer Project Phpmailer

Critical 9.8 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Phpmailer.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
phpmailer_projectphpmailer≥ 6.1.8 ≤ 6.4.0
wordpresswordpress≥ 3.7 < 3.7.36
wordpresswordpress≥ 3.8 < 3.8.36
wordpresswordpress≥ 3.9 < 3.9.34
wordpresswordpress≥ 4.0 < 4.0.33
wordpresswordpress≥ 4.1 < 4.1.33
wordpresswordpress≥ 4.2 < 4.2.30
wordpresswordpress≥ 4.3 < 4.3.26
wordpresswordpress≥ 4.4 < 4.4.25
wordpresswordpress≥ 4.5 < 4.5.24
wordpresswordpress≥ 4.6 < 4.6.21
wordpresswordpress≥ 4.7 < 4.7.21
wordpresswordpress≥ 4.8 < 4.8.17
wordpresswordpress≥ 4.9 < 4.9.18
wordpresswordpress≥ 5.0 < 5.0.13
wordpresswordpress≥ 5.1 < 5.1.10
wordpresswordpress≥ 5.2 < 5.2.11
wordpresswordpress≥ 5.3 < 5.3.8
wordpresswordpress≥ 5.4 < 5.4.6
wordpresswordpress≥ 5.5 < 5.5.5
wordpresswordpress≥ 5.6 < 5.6.4
wordpresswordpress≥ 5.7 < 5.7.2

Official sources

References

Links published by the sources. Open them with care.