On this page (7 sections)

Ubuntu published security notice USN-9000-1 on 4 November 2026 for Twisted, the event-based Python networking framework. According to the Ubuntu notice, Twisted's IMAP server mishandles wildcard patterns in mailbox list commands, which an authenticated remote attacker could possibly use to make Twisted consume excessive resources and cause a denial of service.

If you run a Twisted-based IMAP service, or an application that bundles one, on Ubuntu 22.04 LTS or newer, you should install the updated python3-twisted package. Most other servers are not affected unless they use Twisted's IMAP server component.

What happened

Ubuntu's notice describes a single weakness: the IMAP server in Twisted does not handle wildcard patterns in mailbox list commands safely. The notice says an authenticated remote attacker could possibly use this to cause excessive resource use, which ends in a denial of service. Ubuntu summarizes the impact as Twisted being made to crash when it receives specially crafted network traffic from an authenticated user.

The notice lists one CVE reference, CVE-2026-106454. It does not give a CVSS score or a severity rating, so this article does not assign one. At the time of writing, only the Ubuntu notice covers this story, so details beyond it, such as the upstream fix or technical specifics, are unconfirmed.

Understanding the weakness

IMAP clients use list commands to ask a mail server which mailboxes exist, and those commands accept wildcard characters so a client can match many names at once. If a server evaluates a wildcard pattern in a way that costs far more CPU or memory than the request size suggests, a single client can tie up the server. This is a general resource exhaustion pattern, and the notice's wording fits it, though it does not describe the exact internal cause.

Two details limit the risk. First, the attacker must be authenticated, so an anonymous internet user cannot trigger it unless your service allows open registration or easy account creation. Second, the stated impact is availability only. The notice does not mention data theft or code execution.

Who is affected

  • Ubuntu 22.04 LTS, 24.04 LTS, 26.04 LTS and 26.10 systems with the python3-twisted package installed.
  • Servers that actually run Twisted's IMAP server, directly or through an application built on it. Having the package installed because another tool depends on it is a much lower risk if no IMAP service is exposed.
  • Services where untrusted or low-trust users hold mailbox accounts, since authentication is required to reach the flaw.

The notice only lists Ubuntu packages. It does not address other distributions or upstream Twisted releases, so their status is unconfirmed. If you install Twisted from PyPI or in a container image rather than from Ubuntu packages, the Ubuntu fix does not apply to you, so check your own dependency version and the Twisted project's release notes.

How to check your exposure

This read-only command shows the installed python3-twisted version on Ubuntu. Compare the result with the fixed versions in the table below; an older version means the update is still pending.

Show the installed python3-twisted version (Ubuntu)Shell
dpkg -l python3-twisted

If you are not sure whether an IMAP service built on Twisted is listening, this read-only command lists listening TCP sockets with their processes. Look for a Python process on port 143 or 993.

List listening TCP ports and owning processes (Ubuntu)Shell
sudo ss -tlnp
Fixed python3-twisted versions from USN-9000-1
Ubuntu releaseFixed package version
26.10 (stonking)26.4.0-4ubuntu0.1
26.04 LTS (resolute)25.5.0-5ubuntu0.2
24.04 LTS (noble)24.3.0-1ubuntu0.3
22.04 LTS (jammy)22.1.0-2ubuntu2.8

What to do now

Ubuntu says a standard system update makes the necessary changes. This command refreshes the package index and upgrades only the Twisted package to the fixed version for your release.

Update only python3-twisted (Ubuntu)Shell
sudo apt update && sudo apt install --only-upgrade python3-twisted
Caution. A running Twisted service keeps using the old code until it is restarted. Restart the affected service in a maintenance window, since it will briefly drop active IMAP connections. The service name depends on how your application is deployed.
  1. Run dpkg -l python3-twisted on each Ubuntu host and compare with the fixed versions.
  2. Install the update with apt and confirm the new version number.
  3. Restart any service or application that uses Twisted's IMAP server.
  4. If you install Twisted outside apt (pip, containers), check those environments separately.
  5. Limit who can create mailbox accounts on any IMAP service you run.
  6. Consider restricting IMAP access to known networks or a VPN where practical.
Tip. If you cannot patch immediately, reducing who can log in to the IMAP service is the most direct mitigation, because the flaw requires authentication. The notice does not offer an official workaround, so treat this as general hardening rather than a fix.

Detection and monitoring

A resource exhaustion attack shows up as symptoms rather than a signature. After patching, watch for the Twisted process using unusual CPU or memory, unexpected restarts, and IMAP logins from one account followed by slow responses for everyone else. Review authentication logs for accounts issuing very large numbers of list commands.

For a broader view of your public services, uptime monitoring helps you notice when a mail or application endpoint stops responding, and Webforta Monitor can track uptime and certificate changes. These checks show availability problems, not whether this particular flaw was used.

For more security notices and analysis, browse the Webforta security blog.

Timeline

  • 4 November 2026: Ubuntu publishes USN-9000-1 with fixed python3-twisted packages for 22.04 LTS, 24.04 LTS, 26.04 LTS and 26.10.

Sources

This article is based on the public sources below. Details can change as vendors and researchers publish more; check the original advisories before acting on version numbers.

  1. USN-9000-1: Twisted vulnerability | Ubuntu security notices | Ubuntuubuntu.com ·
  • Ubuntu
  • Twisted
  • USN
  • Denial of service
  • IMAP
  • Python