Inefficient regular expression complexity in PHPMailer - #VU173506
Published: December 4, 2026
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.