CVE-2021-34551
CVE-2021-34551 is a high-severity vulnerability in Phpmailer Project Phpmailer with a CVSS 3.x base score of 8.1. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-434.
Key facts
- Severity: High (CVSS 3.x base score 8.1)
- CVSS v2: 5.1
- EPSS exploit prediction: 3% (85th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-434
- Affected product: Phpmailer Project Phpmailer
- Published:
- Last modified:
Description
PHPMailer before 6.5.0 on Windows allows remote code execution if lang_path is untrusted data and has a UNC pathname.
Frequently asked questions
- What is CVE-2021-34551?
- PHPMailer before 6.5.0 on Windows allows remote code execution if lang_path is untrusted data and has a UNC pathname.
- How severe is CVE-2021-34551?
- CVE-2021-34551 has a CVSS 3.x base score of 8.1, rated high severity. It is exploitable over network with high attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2021-34551 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 3% (85th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2021-34551?
- CVE-2021-34551 primarily affects Phpmailer Project Phpmailer. In total, 3 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2021-34551?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- When was CVE-2021-34551 published?
- CVE-2021-34551 was published on 2021-06-16 and last updated on 2026-06-17.
References
- https://github.com/PHPMailer/PHPMailer/blob/master/SECURITY.md
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3YRMWGA4VTMXFB22KICMB7YMFZNFV3EJ/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FJYSOFCUBS67J3TKR74SD3C454N7VTYM/
Affected products (3)
- cpe:2.3:a:phpmailer_project:phpmailer:*:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
More vulnerabilities in Phpmailer Project Phpmailer
- CVE-2020-36326 — Critical (CVSS 9.8): PHPMailer 6.1.8 through 6.4.0 allows object injection through Phar Deserialization via addAttachment with a UNC…
- CVE-2016-10045 — Critical (CVSS 9.8): The isMail transport in PHPMailer before 5.2.20 might allow remote attackers to pass extra parameters to the mail…
- CVE-2016-10033 — Critical (CVSS 9.8): The mailSend function in the isMail transport in PHPMailer before 5.2.18 might allow remote attackers to pass extra…
- CVE-2018-19296 — High (CVSS 8.8): PHPMailer before 5.2.27 and 6.x before 6.0.6 is vulnerable to an object injection attack.
- CVE-2021-3603 — High (CVSS 8.1): PHPMailer 6.4.1 and earlier contain a vulnerability that can result in untrusted code being called (if such code is…
- CVE-2020-13625 — High (CVSS 7.5): PHPMailer before 6.1.6 contains an output escaping bug when the name of a file attachment contains a double quote…
All CVEs affecting Phpmailer Project Phpmailer →
Other CWE-434 (Unrestricted Upload of File with Dangerous Type) vulnerabilities
- CVE-2026-48283 — Critical (CVSS 10.0): ColdFusion versions 2025.9, 2023.20 and earlier are affected by an Unrestricted Upload of File with Dangerous Type…
- CVE-2026-48276 — Critical (CVSS 10.0): ColdFusion versions 2025.9, 2023.20 and earlier are affected by an Unrestricted Upload of File with Dangerous Type…
- CVE-2026-57700 — Critical (CVSS 10.0): Unrestricted Upload of File with Dangerous Type vulnerability in Daan.Dev OMGF Pro allows Using Malicious Files. This…
- CVE-2025-69129 — Critical (CVSS 10.0): Unauthenticated Arbitrary File Upload in WordPress & WooCommerce Scraper Plugin, Import Data from Any Site <= 1.0.7…
- CVE-2026-40772 — Critical (CVSS 10.0): Unauthenticated Arbitrary File Upload in GeekyBot <= 1.2.2 versions.
- CVE-2026-40412 — Critical (CVSS 10.0): Unrestricted upload of file with dangerous type in Azure Orbital Spatio allows an unauthorized attacker to execute code…
Browse all CWE-434 (Unrestricted Upload of File with Dangerous Type) vulnerabilities →