CVE-2026-106454Twisted: IMAP wildcardToRegexp() ReDoS
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.
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Debian, PyPI, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | twisted | Fixed | 26.4.0-4ubuntu0.1 | UBUNTU-CVE-2026-106454 |
| Ubuntu 26.04 | twisted | Fixed | 25.5.0-5ubuntu0.2 | UBUNTU-CVE-2026-106454 |
| Ubuntu 24.04 | twisted | Fixed | 24.3.0-1ubuntu0.3 | UBUNTU-CVE-2026-106454 |
| Ubuntu 22.04 | twisted | Fixed | 22.1.0-2ubuntu2.8 | UBUNTU-CVE-2026-106454 |
| Ubuntu 20.04 | twisted | Fix pending | UBUNTU-CVE-2026-106454 | |
| Ubuntu 18.04 | twisted | Fix pending | UBUNTU-CVE-2026-106454 | |
| Ubuntu 16.04 | twisted | Fix pending | UBUNTU-CVE-2026-106454 | |
| Ubuntu 14.04 | twisted | Fix pending | UBUNTU-CVE-2026-106454 | |
| Debian 14 | twisted | Fixed | 26.4.0-5 | DEBIAN-CVE-2026-106454 |
| Debian 13 | twisted | Fix pending | DEBIAN-CVE-2026-106454 | |
| Debian 12 | twisted | Fix pending | DEBIAN-CVE-2026-106454 | |
| PyPI library | twisted | Fix pending | PYSEC-2026-4304 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- twisted: affected: <= 25.5.0
References
- https://github.com/twisted/twisted/security/advisories/GHSA-8pqf-f4m5-798g
- https://github.com/twisted/twisted/pull/12788
- https://github.com/twisted/twisted/commit/2f8a3c29246f4eb324690e06a9767a11dc4aec9f
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.