CVE-2020-36326
PHPMailer 6.1.8 through 6.4.0 allows object injection through Phar Des ...
Severity by source
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
| Source | Package | Fixed in |
|---|---|---|
| bitnami::Bitnami Vulnerability Database | phpmailer, wordpress, wordpress-multisite | 6.4.1 and 1 more |
| composer::GitHub Security Advisory Composer | phpmailer/phpmailer | 6.4.1 |
| composer::PHP Security Advisories Database | phpmailer/phpmailer | no fix listed |
| debian 11 | libphp-phpmailer | 6.2.0-2 |
| debian 12 | libphp-phpmailer | 6.2.0-2 |
| debian 13 | libphp-phpmailer | 6.2.0-2 |
| debian 14 | libphp-phpmailer | 6.2.0-2 |
| echo | libphp-phpmailer | 6.2.0-2 |
Show all 10 entries from 8 sources
| Source | Package | Fixed in |
|---|---|---|
| bitnami::Bitnami Vulnerability Database | phpmailer | 6.4.1 |
| bitnami::Bitnami Vulnerability Database | wordpress | 3.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 Database | wordpress-multisite | 3.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 Composer | phpmailer/phpmailer | 6.4.1 |
| composer::PHP Security Advisories Database | phpmailer/phpmailer | no fix listed |
| debian 11 | libphp-phpmailer | 6.2.0-2 |
| debian 12 | libphp-phpmailer | 6.2.0-2 |
| debian 13 | libphp-phpmailer | 6.2.0-2 |
| debian 14 | libphp-phpmailer | 6.2.0-2 |
| echo | libphp-phpmailer | 6.2.0-2 |
References
- https://github.com/FriendsOfPHP/security-advisories/blob/master/phpmailer/phpmailer/CVE-2020-36326.yaml
- https://github.com/PHPMailer/PHPMailer
- https://github.com/PHPMailer/PHPMailer/commit/e2e07a355ee8ff36aba21d0242c5950c56e4c6f9
- https://github.com/PHPMailer/PHPMailer/releases/tag/v6.4.1
- https://github.com/PHPMailer/PHPMailer/security/advisories/GHSA-m298-fh5c-jc66
- 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/3B5WDPGUFNPG4NAZ6G4BZX43BKLAVA5B/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KPU66INRFY5BQ3ESVPRUXJR4DXQAFJVT