Vulnerabilities / CVE-2020-36326

critical

CVE-2020-36326

PHPMailer 6.1.8 through 6.4.0 allows object injection through Phar Des ...

Published Modified CWE 502
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Bitnami9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, GHSA, Bitnami.

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 packages and fixed versions

SourcePackageFixed in
bitnami::Bitnami Vulnerability Databasephpmailer, wordpress, wordpress-multisite6.4.1 and 1 more
composer::GitHub Security Advisory Composerphpmailer/phpmailer6.4.1
composer::PHP Security Advisories Databasephpmailer/phpmailerno fix listed
debian 11libphp-phpmailer6.2.0-2
debian 12libphp-phpmailer6.2.0-2
debian 13libphp-phpmailer6.2.0-2
debian 14libphp-phpmailer6.2.0-2
echolibphp-phpmailer6.2.0-2
Show all 10 entries from 8 sources
SourcePackageFixed in
bitnami::Bitnami Vulnerability Databasephpmailer6.4.1
bitnami::Bitnami Vulnerability Databasewordpress3.7.36, 3.8.36, 3.9.34, 4.0.33, 4.1.33, 4.2.30, 4.3.26, 4.4.25, 4.5.24, 4.6.21, 4.7.21, 4.8.17, 4.9.18, 5.0.13, 5.1.10, 5.2.11, 5.3.8, 5.4.6, 5.5.5, 5.6.4, 5.7.2
bitnami::Bitnami Vulnerability Databasewordpress-multisite3.7.36, 3.8.36, 3.9.34, 4.0.33, 4.1.33, 4.2.30, 4.3.26, 4.4.25, 4.5.24, 4.6.21, 4.7.21, 4.8.17, 4.9.18, 5.0.13, 5.1.10, 5.2.11, 5.3.8, 5.4.6, 5.5.5, 5.6.4, 5.7.2
composer::GitHub Security Advisory Composerphpmailer/phpmailer6.4.1
composer::PHP Security Advisories Databasephpmailer/phpmailerno fix listed
debian 11libphp-phpmailer6.2.0-2
debian 12libphp-phpmailer6.2.0-2
debian 13libphp-phpmailer6.2.0-2
debian 14libphp-phpmailer6.2.0-2
echolibphp-phpmailer6.2.0-2

References

All 10 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.