Skip to content
OpenAdvisories
Critical · 9.8 CVE-2020-36326 BIT-phpmailer-2020-36326BIT-wordpress-2020-36326BIT-wordpress-multisite-2020-36326EUVD-2021-1129GHSA-m298-fh5c-jc66

Object injection in PHPMailer/PHPMailer

Published Apr 28, 2021 · Updated Aug 4, 2024 · 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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libphp-phpmailer 6.2.0-2 —
Debian 13 libphp-phpmailer 6.2.0-2 —
Debian 12 libphp-phpmailer 6.2.0-2 —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist phpmailer/phpmailer >= 6.1.8, < 6.4.1 6.4.1 GHSA-m298-fh5c-jc66

References