ADVISORIES

Vulnerability

CVE-2026-106454

Twisted is an event-based framework for internet applications, supporting Python 3.6+. In 25.5.0 and earlier, wildcardToRegexp() in twisted/mail/imap4.py translates the IMAP asterisk and percent wildcards but passes all other characters from an authenticated client's LIST or LSUB pattern directly to re.compile(), allowing nested or otherwise expensive regular expression constructs to cause catastrophic backtracking when matched against mailbox names. Because Twisted uses a cooperative single-threaded reactor, the blocking match suspends all server input and output for the duration of the match. No fixed release is available as of this review.

16 advisories report this vulnerability, across 8 ecosystems.

Advisories in PyPI

  • GHSA-8pqf-f4m5-798g

    Twisted: IMAP wildcardToRegexp() ReDoS

    Moderate CVE-2026-106454 PyPI Updated 15 October 2026
  • PYSEC-2026-4304

    Twisted: IMAP wildcardToRegexp() ReDoS

    CVE-2026-106454 PyPI Updated 15 October 2026

References