#VU54170 Input validation error in PHPMailer - CVE-2021-34551

 

#VU54170 Input validation error in PHPMailer - CVE-2021-34551

Published: June 16, 2021


Vulnerability identifier: #VU54170
Vulnerability risk: Medium
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2021-34551
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
PHPMailer
Software vendor:
phpmailer.sourceforge.net

Description

The vulnerability allows a remote attacker to compromise the affected system.

The vulnerability exists due to insufficient validation of user-supplied input within the setLanguage() method when processing the $lang_path parameter on a Windows system. A remote attacker can pass specially crafted input to the application, set a UNC path via the affected parameter and execute arbitrary PHP code on the system.


Remediation

Install updates from vendor's website.

External links