CVE-2021-34551
HIGH 8.1CVSS 3.1Remote Code Execution vulnerability in PHPMailer 6.4.1 running on Windows
PHPMailer before 6.5.0 on Windows allows remote code execution if lang_path is untrusted data and has a UNC pathname.
- Published
- 16 Jun 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-434CWE-94
- Also known as
- BIT-phpmailer-2021-34551GHSA-7q44-r25x-wm4q
- Sources
- NVDJSONOSV GHSA-7q44-r25x-wm4qJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.1 | AV:N/AC:H/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | phpmailer_project | phpmailercpe:2.3:a:phpmailer_project:phpmailer:*:*:*:*:*:*:*:* |
< 6.5.0 | 6.5.0 |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* |
= 33 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* |
= 34 | |
| OSV | Packagist | phpmailer/phpmailer | < 6.5.0 | 6.5.0 |
References
- https://github.com/PHPMailer/PHPMailer/blob/master/SECURITY.md · Issue Tracking, Third Party Advisory, WEB
- 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/
- https://github.com/PHPMailer/PHPMailer/security/advisories/GHSA-7q44-r25x-wm4q · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-34551 · ADVISORY
- https://github.com/PHPMailer/PHPMailer/commit/acd264bf17ff4ac5c915f0d4226dce8a9ea70bc3 · WEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/phpmailer/phpmailer/CVE-2021-34551.yaml · WEB
- https://github.com/PHPMailer/PHPMailer/releases/tag/v6.5.0 · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3YRMWGA4VTMXFB22KICMB7YMFZNFV3EJ · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FJYSOFCUBS67J3TKR74SD3C454N7VTYM · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 16 Jun 2021)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 22 Jun 2021)