CVE-2021-34551 Remote Code Execution vulnerability in PHPMailer 6.4.1 running on Windows
Remote code execution is possible in PHPMailer on Windows if the language path is controlled by an attacker and uses a UNC pathname.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-34551?
CVE-2021-34551 is a high-severity vulnerability in Fedoraproject Fedora, published on 16 Jun 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
PHPMailer before 6.5.0 on Windows allows remote code execution if lang_path is untrusted data and has a UNC pathname.
Weakness: CWE-434
Which versions are affected by CVE-2021-34551?
3 open source packages ship an affected version, including phpmailer/phpmailer and phpmailer. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
phpmailer/phpmailer Packagist | All versions | 6.5.0 |
phpmailer/phpmailer Packagist | All versions | 6.5.0 |
phpmailer Bitnami | All versions | 6.5.0 |
Products include Fedoraproject Fedora, Phpmailer Project Phpmailer.
How do I fix CVE-2021-34551?
Upgrade phpmailer/phpmailer to 6.5.0 or later.
Is CVE-2021-34551 being exploited?
There is no known exploitation of CVE-2021-34551 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as BIT-phpmailer-2021-34551, GHSA-7q44-r25x-wm4q.