Packagist (PHP)Worst: Critical14 advisories
phpmailer/phpmailer: known vulnerabilities
phpmailer/phpmailer has 14 reviewed security advisories in the GitHub Advisory Database — 3 critical, 7 high, 3 moderate, 1 low. The most recent was published 2024-02-02. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the phpmailer/phpmailer versions running across your servers, containers and images, and ranks what to patch first.
How to fix phpmailer/phpmailer
Upgrade phpmailer/phpmailer to a release at or above the fixed version shown for each advisory below. For Packagist (PHP):
composer require phpmailer/phpmailer:^1.7.4 (composer audit)
SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.
Advisories (14)
PHPMailer Shell command injection
High
— Affected: before 1.7.4. Fixed in 1.7.4. Published 2024-02-02. GHSA-6h78-85v2-mmch · CVE-2007-3215
PHPMailer Local file inclusion
Moderate
— Affected: before 5.2.0. Fixed in 5.2.0. Published 2024-02-02. GHSA-8jc3-5p29-qgjx · CVE-2006-5734
PHPMailer untrusted code may be run from an overridden address validator
High 8.1 CWE-74 CWE-829
— Affected: before 6.5.0. Fixed in 6.5.0. Published 2021-06-17. GHSA-77mr-wc79-m8j3 · CVE-2021-3603
Remote Code Execution vulnerability in PHPMailer 6.4.1 running on Windows
High 8.1 CWE-434 CWE-94
— Affected: before 6.5.0. Fixed in 6.5.0. Published 2021-06-16. GHSA-7q44-r25x-wm4q · CVE-2021-34551
Object injection in PHPMailer/PHPMailer
Critical 9.8 CWE-502 CWE-641
— Affected: from 6.1.8 up to 6.4.1. Fixed in 6.4.1. Published 2021-04-28. GHSA-m298-fh5c-jc66 · CVE-2020-36326
Insufficient output escaping of attachment names in PHPMailer
High 7.5 CWE-116
— Affected: before 6.1.6. Fixed in 6.1.6. Published 2020-06-08. GHSA-f7hx-fqxw-rvvj · CVE-2020-13625
Local file disclosure in PHPMailer
Moderate 5.5 CWE-200
— Affected: from 5.0.0 up to 5.2.22. Fixed in 5.2.22. Published 2020-03-05. GHSA-4x5h-cr29-fhp6 · CVE-2017-5223
Cross-site scripting in PHPMailer
Moderate 6.1 CWE-79
— Affected: from 5.0.0 up to 5.2.24. Fixed in 5.2.24. Published 2020-03-05. GHSA-58mj-pw57-4vm2 · CVE-2017-11503
SMTP Injection in PHPMailer
Low CWE-20
— Affected: from 5.0.0 up to 5.2.14. Fixed in 5.2.14. Published 2020-03-05. GHSA-738m-f33v-qc2r · CVE-2015-8476
Phar object injection in PHPMailer
High 8.8 CWE-1321 CWE-502 CWE-915
— Affected: from 6.0.0 up to 6.0.6. Fixed in 6.0.6. Published 2018-11-16. GHSA-7w4p-72j7-v7c2 · CVE-2018-19296
Remote code execution in PHPMailer
Critical 9.8 CWE-77
— Affected: from 5.0.0 up to 5.2.20. Fixed in 5.2.20. Published 2016-12-30. GHSA-4pc3-96mx-wwc8 · CVE-2016-10045
Remote code execution in PHPMailer
Critical 9.8 CWE-77 CWE-88
— Affected: from 5.0.0 up to 5.2.18. Fixed in 5.2.18. Published 2016-12-30. GHSA-5f37-gxvh-23v6 · CVE-2016-10033 · In CISA KEV →
PHPMailer vulnerable to email header injection
High CWE-94
— Affected: before 2.2.1. Fixed in 2.2.1. Published 2012-07-17. GHSA-398j-f7m7-795j · CVE-2012-0796
PHPMailer susceptible to arbitrary code execution
High CWE-94
— Affected: before 5.2.10. Fixed in 5.2.10. Published 2008-12-17. GHSA-v5c9-mmw9-829q · CVE-2008-5619
Find phpmailer/phpmailer across your fleet
Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA,
CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month.
Start free.