Skip to content
OpenAdvisories
Medium · 4.9 CVE-2026-115774 EUVD-2026-109148GHSA-2qrf-pqgx-qh9v

Twisted: Denial of Service in the Twisted IMAP4 Server via a Negative Literal Size in SEARCH

Published Oct 23, 2026 · Updated Oct 29, 2026 · Assigned by GitHub_M

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

VendorProductAffectedFixed
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.

ReleasePackageFixed inAdvisory
Debian 14 twisted 26.10.0-1 —
Debian 13 twisted No fix yet —
Debian 12 twisted No fix yet —
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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 —
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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

ReleasePackageFixed inAdvisory
Azure Linux 3 python-twisted No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI twisted < 26.10.0rc1 26.10.0rc1 GHSA-2qrf-pqgx-qh9v

Advisories 1

References