Improper Handling of Unicode Encoding in PHPMailer - #VU173505

 

Improper Handling of Unicode Encoding in PHPMailer - #VU173505

Published: December 4, 2026


Vulnerability identifier: #VU173505
CSH Severity: Medium
CVSS v4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-176
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to redirect email to an unintended domain and potentially obtain sensitive messages such as password reset links.

The vulnerability exists due to improper handling of Unicode encoding in PHPMailer::punyencodeAddress() when it interprets a UTF-8 domain as ISO-8859-1 under the default CharSet setting before converting it to Punycode. A remote attacker can supply an internationalized email address to misdirect delivery, even if the application has separately validated the intended domain.


Affected software

PHPMailer

Remediation

Install security update from vendor's website.

PHPMailer - update to 7.4.0

External References

Related Security Bulletins