Vulnerability · Published Oct 6, 2026 · Assigned by GitHub_M

CVE-2026-106454Twisted: IMAP wildcardToRegexp() ReDoS

Medium 4.3

In plain English

A medium-severity regular-expression denial of service in twisted from twisted. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 36% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.3Medium
Exploit odds (30 days)0.4%top 63.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12twistedno fix listedDEBIAN-CVE-2026-106454
Debian:13twistedno fix listedDEBIAN-CVE-2026-106454
Debian:14twisted26.4.0-5DEBIAN-CVE-2026-106454
PyPItwistedno fix listedPYSEC-2026-4304
PyPItwistedno fix listedGHSA-8pqf-f4m5-798g
Ubuntu:22.04:LTStwisted22.1.0-2ubuntu2.8USN-9000-1
Ubuntu:22.04:LTStwisted22.1.0-2ubuntu2.8UBUNTU-CVE-2026-106454
Ubuntu:24.04:LTStwisted24.3.0-1ubuntu0.3USN-9000-1
Ubuntu:24.04:LTStwisted24.3.0-1ubuntu0.3UBUNTU-CVE-2026-106454
Ubuntu:26.04:LTStwisted25.5.0-5ubuntu0.2UBUNTU-CVE-2026-106454
Ubuntu:26.04:LTStwisted25.5.0-5ubuntu0.2USN-9000-1
Ubuntu:26.10twisted26.4.0-4ubuntu0.1USN-9000-1
Ubuntu:26.10twisted26.4.0-4ubuntu0.1UBUNTU-CVE-2026-106454

Affected products (as reported)

VendorProductVersions
twisted twisted <= 25.5.0

Weakness: CWE-1333 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

References