Inefficient regular expression complexity in PHPMailer - #VU173506

 

Inefficient regular expression complexity in PHPMailer - #VU173506

Published: December 4, 2026


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

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service by exhausting CPU resources.

The vulnerability exists due to catastrophic regular-expression backtracking in PHPMailer's html2text() method when processing HTML, causing CPU time to grow quadratically on certain inputs. A remote attacker can supply crafted HTML to an application that passes it to html2text() directly or through msgHTML() to cause a denial of service.


Affected software

PHPMailer

Remediation

Install security update from vendor's website.

PHPMailer - update to 7.4.0

External References

Related Security Bulletins