Description
Twisted is an event-based framework for internet applications, supporting Python 3.6+. Prior to 26.10.0rc1, twisted.mail.imap4.IMAP4Server reaches twisted.mail.imap4.parseNestedParens with a negative literal size in an authenticated SEARCH command after the client enters the selected mailbox state. The negative size moves the parser cursor below zero, and Python's negative indexing prevents the synchronous scanning loop from terminating. The loop freezes the single-threaded reactor, stopping other IMAP connections and any SMTP or POP3 services hosted in the same process until restart. This issue is fixed in version 26.10.0rc1.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| twisted | twisted | < 26.10.0rc1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | twisted | 26.10.0-1 | — |
| Debian 13 | twisted | No fix yet | — |
| Debian 12 | twisted | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | twisted | No fix yet | — |
| Ubuntu 26.04 LTS | twisted | No fix yet | — |
| Ubuntu 24.04 LTS | twisted | No fix yet | — |
| Ubuntu 22.04 LTS | twisted | No fix yet | — |
| Ubuntu 20.04 LTS | twisted | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | twisted | No fix yet | — |
| Ubuntu Pro 16.04 LTS | twisted | No fix yet | — |
| Ubuntu Pro 14.04 LTS | twisted | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP6 | python-Twisted | 22.10.0-150400.5.31.1 | SUSE-SU-2026:5215-1 |
| SLES 15 SP5 | python-Twisted | 22.10.0-150400.5.31.1 | SUSE-SU-2026:5215-1 |
| SLES 15 SP4 | python-Twisted | 22.10.0-150400.5.31.1 | SUSE-SU-2026:5215-1 |
| SLES 3 | python-Twisted | 22.10.0-150400.5.31.1 | SUSE-SU-2026:5215-1 |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP6 | python-Twisted | 22.10.0-150400.5.31.1 | SUSE-SU-2026:5215-1 |
| SLES for SAP 15 SP5 | python-Twisted | 22.10.0-150400.5.31.1 | SUSE-SU-2026:5215-1 |
| SLES for SAP 15 SP4 | python-Twisted | 22.10.0-150400.5.31.1 | SUSE-SU-2026:5215-1 |
| SLE HPC 15 SP5 | python-Twisted | 22.10.0-150400.5.31.1 | SUSE-SU-2026:5215-1 |
| SLE HPC 15 SP4 | python-Twisted | 22.10.0-150400.5.31.1 | SUSE-SU-2026:5215-1 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | python-twisted | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | twisted | < 26.10.0rc1 | 26.10.0rc1 | GHSA-2qrf-pqgx-qh9v |
Advisories 1
- SUSE-SU-2026:5215-1 Security update for python-Twisted SUSE / openSUSE Security Updates · Nov 13, 2026