Inefficient regular expression complexity in Twisted Web - #VU144313
Published: August 19, 2026
Vulnerability details
The vulnerability allows a remote user to cause a denial of service.
The vulnerability exists due to inefficient regular expression complexity in the wildcardToRegexp() function in twisted/mail/imap4.py when processing IMAP wildcard patterns in LIST or LSUB commands. A remote user can send a specially crafted quoted pattern string containing catastrophic-backtracking regex syntax to cause a denial of service.
Because the server uses a cooperative single-threaded reactor, a blocking regex match can freeze all I/O on the server for the duration of the match.