What’s Vulnerable › Vulnerabilities
CVE-2026-106454: Twisted: IMAP wildcardToRegexp() ReDoS
- Severity: medium (CVSS 4.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-10-06 · updated 2026-10-07
- Weakness: CWE-1333
Description
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.
Affected products
- twisted: through 25.5.0
References
- https://github.com/twisted/twisted/commit/2f8a3c29246f4eb324690e06a9767a11dc4aec9f
- https://github.com/twisted/twisted/pull/12788
- https://github.com/twisted/twisted/security/advisories/GHSA-8pqf-f4m5-798g
- https://github.com/twisted/twisted/security/advisories/GHSA-8pqf-f4m5-798g
Get alerted when CVE-2026-106454 or the next vulnerability affects your stack