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.
Published: 2026-10-23
Score: 4.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service
Action: Patch
AI Analysis

Impact

The Twisted IMAP4 server can enter an infinite loop when an authenticated client issues a SEARCH command containing a negative literal size. The negative value causes Twisted’s parser cursor to move before the start of the buffer, and Python’s handling of negative indexes prevents the synchronous scanning loop from terminating. The loop blocks the single‑threaded reactor, halting all IMAP sessions and any SMTP or POP3 services running in the same process. The vulnerability does not directly compromise confidentiality or integrity; its effect is limited to availability through a self‑contained denial of service.

Affected Systems

The flaw exists in the Twisted framework for Python, specifically the twisted.mail.imap4.IMAP4Server component. All Twisted versions prior to 26.10.0rc1 are affected. The issue requires Python 3.6 or later and an authenticated IMAP session in the selected mailbox state.

Risk and Exploitability

The CVSS score of 4.9 indicates moderate severity. EPSS data is not available, and the vulnerability is not listed in CISA KEV. Exploitation requires an authenticated IMAP session, so an attacker needs valid credentials to reach the vulnerable state. Because the flaw is limited to a single process and no escalation or data exfiltration is possible, the immediate risk is service disruption rather than compromise. However, in environments where the IMAP server handles critical mail flows, the denial of service could be highly disruptive.

Generated by OpenCVE AI on October 23, 2026 at 21:50 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Twisted to version 26.10.0rc1 or later to apply the fixed parser logic
  • Restrict the IMAP service so that only authenticated, trusted users can issue SEARCH commands, reducing the opportunity for an attacker to reach the vulnerable state
  • Enable logging of malformed SEARCH commands and monitor for negative literal sizes; consider temporarily disabling the SEARCH command or applying input validation until the official update is applied

Generated by OpenCVE AI on October 23, 2026 at 21:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-2qrf-pqgx-qh9v Twisted: Denial of Service in the Twisted IMAP4 Server via a Negative Literal Size in SEARCH
History

Thu, 29 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Sat, 24 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Fri, 23 Oct 2026 23:00:00 +0000

Type Values Removed Values Added
First Time appeared Twisted
Twisted twisted
Vendors & Products Twisted
Twisted twisted

Fri, 23 Oct 2026 20:30:00 +0000

Type Values Removed Values Added
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.
Title Twisted: Denial of Service in the Twisted IMAP4 Server via a Negative Literal Size in SEARCH
Weaknesses CWE-400
CWE-835
References
Metrics cvssV3_1

{'score': 4.9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-29T14:20:15.738Z

Reserved: 2026-10-23T13:28:51.847Z

Link: CVE-2026-115774

cve-icon Vulnrichment

Updated: 2026-10-29T14:20:06.864Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-23T21:17:22.900

Modified: 2026-10-29T15:17:18.580

Link: CVE-2026-115774

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-23T20:14:07Z

Links: CVE-2026-115774 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-23T22:45:14Z

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-835

    Loop with Unreachable Exit Condition ('Infinite Loop')