PT-2021-3321 · Phpmailer · Phpmailer
Published
2021-06-16
·
Updated
2024-03-06
·
CVE-2021-34551
CVSS v3.1
8.1
High
| Vector | AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
PHPMailer versions prior to 6.5.0
Description
The issue is related to errors in handling the
lang path parameter in the setLanguage() function of the PHPMailer library. This can allow a remote attacker to execute arbitrary code if the lang path is untrusted data and contains a UNC pathname.Recommendations
For PHPMailer versions prior to 6.5.0, update to version 6.5.0 or later to resolve the issue. As a temporary workaround, consider validating and sanitizing the
lang path parameter to prevent the use of untrusted data, especially those containing UNC pathnames. Restrict access to the setLanguage() function to minimize the risk of exploitation.Exploit
Fix
RCE
Unrestricted File Upload
Code Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Phpmailer