Skip to content
Threat Feed
high advisory

Twisted: Unauthenticated remote memory exhaustion in domish XML stream (CVE-2026-115775)

The Twisted XML element stream library is vulnerable to memory exhaustion, allowing unauthenticated remote attackers to trigger a denial of service by sending unbounded, unclosed XML element trees.

CVE search metadata

CVE search record: CVE-2026-115775. KEV: no. Product: Twisted (<= 26.4.0). Brief: Twisted: Unauthenticated remote memory exhaustion in domish XML stream (CVE-2026-115775). Brief link: https://feed.craftedsignal.io/briefs/2026-10-twisted-xml-dos/

Triage facts

Revision 1
Applicability
Twisted (<= 26.4.0)
Evidence
Unknown
Severity
High
Action
Elevated
Sources
2 public sources
Freshness
Revision 1Oct 23, 21:48 UTC
Vulnerabilities
1 CVE
Source quality
A1Likely

Twisted contains a vulnerability in twisted.words.xish.domish where an unauthenticated remote peer can exhaust server memory through a specifically crafted, unclosed XML element tree. The ExpatElementStream parser fails to implement depth or child-count limits during XML streaming. By sending a container element and continuously streaming child elements without an end tag, an attacker forces the server to materialize every element in memory, retaining the entire tree until the process reaches memory limits and is terminated. This exploitation occurs during initial protocol negotiation, such as XMPP, before any authentication takes place.

Impact

Successful exploitation results in a remote denial of service via memory exhaustion, causing the host process to be terminated by the operating system. There is no impact on confidentiality or integrity, and no potential for remote code execution.

Recommendation

  • Upgrade the Twisted package to the latest version once a fix is released.
  • Implement pre-authentication XML stream size and duration limits at the application or load balancer layer for all services utilizing twisted.words.xish.domish for untrusted input.
  • Monitor application memory metrics for anomalous, sustained growth during the connection negotiation phase for XMPP services.

Immediate actions

Inventory all applications using Twisted for XML processing or XMPP services.

IT Operations 24h

Threat Hunt

Monitor XMPP or custom XML services for connections that maintain a high volume of unclosed nested tags over a prolonged duration.

T1499 high medium confidence hunt now

Data: Application-level XML stream logs, Process memory usage telemetry

Mitigations

Upgrade Twisted to 26.10.0rc1 or later

immediate IT Operations

CVE-2026-115775