# CVE-2026-115774: Twisted: Denial of Service in the Twisted IMAP4 Server via a Negative Literal Size in SEARCH

- Severity: Medium 4.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-23T20:14:07.480Z
- Modified: 2026-10-29T15:17:18.580Z
- Also known as: GHSA-2qrf-pqgx-qh9v
- Weaknesses: CWE-400, CWE-835
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- twisted twisted: < 26.10.0rc1
- twisted (PyPI): before 26.10.0rc1

## Every score

- GitHub_M: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/twisted/twisted/security/advisories/GHSA-2qrf-pqgx-qh9v> (exploit, web)
- <https://github.com/twisted/twisted/pull/12764> (web)
- <https://github.com/twisted/twisted/commit/3d125548bcbe955007cb97f480bb699a5e074741> (web)
- <https://github.com/twisted/twisted/releases/tag/twisted-26.10.0rc1> (web)
- <https://github.com/twisted/twisted> (package)

## Sources

- CVE List: [CVE-2026-115774](https://www.cve.org/CVERecord?id=CVE-2026-115774), CVE Terms of Use, modified 2026-10-29
- GitHub Advisory Database: [GHSA-2qrf-pqgx-qh9v](https://github.com/advisories/GHSA-2qrf-pqgx-qh9v), CC-BY-4.0, modified 2026-10-23
- NVD: [CVE-2026-115774](https://nvd.nist.gov/vuln/detail/CVE-2026-115774), Public domain, modified 2026-10-29

---

Page: https://cve.day/CVE-2026-115774 · Whole record: https://cve.day/CVE-2026-115774.json · Rebuilt by cve.day 2026-11-25T22:59:47.009Z
