Skip to main content

In 25.5.0 and earlier, wildcardToRegexp() in twisted/mail/imap4.py translates the IMAP asterisk and percent wildcards but passes all other… (CVE-2026-106454)

0
Medium
Published: 10/06/2026 (10/06/2026, 20:17:00 UTC)
Source: GCVE Database
Product: twisted

Description

In Twisted versions 25.5.0 and earlier, the wildcardToRegexp() function in twisted/mail/imap4.py improperly handles certain IMAP pattern characters by passing them directly to Python's regular expression compiler. This allows an authenticated client to craft patterns that cause catastrophic backtracking, leading to a denial of service by suspending all server input and output during the match. No fixed release is currently available.

CVSS v3.1

Score 4.3medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

Affected software

Ubuntu:Pro:14.04:LTSmore threats →ghsa
twisted
pkg:deb/ubuntu/twisted?arch=source&distro=esm-infra-legacy/trusty
Affected versions
=13.0.0-1ubuntu1=13.2.0-1ubuntu1=13.2.0-1ubuntu1.2=13.2.0-1ubuntu1.2+esm1=13.2.0-1ubuntu1.2+esm2=13.2.0-1ubuntu1.2+esm3
Ubuntu:Pro:16.04:LTSmore threats →ghsa
twisted
pkg:deb/ubuntu/twisted?arch=source&distro=esm-infra/xenial
Affected versions
=15.2.1-1ubuntu2=15.5.0-1=15.5.0-2=15.5.0-2ubuntu1=15.5.0-4=16.0.0~pre1-1=16.0.0~pre1-1ubuntu1=16.0.0~pre1-2ubuntu1=16.0.0~pre1-3=16.0.0-1=16.0.0-1ubuntu0.2=16.0.0-1ubuntu0.4=16.0.0-1ubuntu0.4+esm1=16.0.0-1ubuntu0.4+esm2
Ubuntu:Pro:18.04:LTSmore threats →ghsa
twisted
pkg:deb/ubuntu/twisted?arch=source&distro=esm-infra/bionic
Affected versions
=16.6.0-2ubuntu3=17.9.0-1=17.9.0-2=17.9.0-2ubuntu0.1=17.9.0-2ubuntu0.3=17.9.0-2ubuntu0.3+esm1=17.9.0-2ubuntu0.3+esm2
Ubuntu:20.04:LTSmore threats →ghsa
twisted
pkg:deb/ubuntu/twisted?arch=source&distro=focal
Affected versions
=18.9.0-3ubuntu1=18.9.0-5=18.9.0-6=18.9.0-6build1=18.9.0-6ubuntu1=18.9.0-8=18.9.0-11=18.9.0-11ubuntu0.20.04.1=18.9.0-11ubuntu0.20.04.2=18.9.0-11ubuntu0.20.04.3=18.9.0-11ubuntu0.20.04.4=18.9.0-11ubuntu0.20.04.5
Ubuntu:22.04:LTSmore threats →ghsa
twisted
pkg:deb/ubuntu/twisted?arch=source&distro=jammy
Affected versions
=20.3.0-7ubuntu1=20.3.0-7ubuntu3=22.1.0-2ubuntu2=22.1.0-2ubuntu2.1=22.1.0-2ubuntu2.3=22.1.0-2ubuntu2.4=22.1.0-2ubuntu2.5=22.1.0-2ubuntu2.6=22.1.0-2ubuntu2.7
Ubuntu:24.04:LTSmore threats →ghsa
twisted
pkg:deb/ubuntu/twisted?arch=source&distro=noble
Affected versions
=22.4.0-4=22.4.0-4ubuntu1=23.10.0-2=24.3.0-1=24.3.0-1ubuntu0.1=24.3.0-1ubuntu0.2
Ubuntu:26.10more threats →ghsa
twisted
pkg:deb/ubuntu/twisted?arch=source&distro=stonking
Affected versions
=25.5.0-5=26.4.0-4
Ubuntu:26.04:LTSmore threats →ghsa
twisted
pkg:deb/ubuntu/twisted?arch=source&distro=resolute
Affected versions
=24.11.0-1=25.5.0-4=25.5.0-5=25.5.0-5ubuntu0.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/17/2026, 22:37:38 UTC

Technical Analysis

Twisted is an event-driven framework for internet applications supporting Python 3.6 and later. In versions 25.5.0 and earlier, the function wildcardToRegexp() in twisted/mail/imap4.py translates the IMAP asterisk (*) and percent (%) wildcards but passes all other characters from an authenticated client's LIST or LSUB pattern directly to re.compile(). This behavior allows an attacker to supply nested or complex regular expression constructs that cause catastrophic backtracking when matched against mailbox names. Because Twisted uses a cooperative single-threaded reactor, this blocking match suspends all server input and output for the duration of the match, effectively causing a denial of service. As of the review date, no fixed release is available.

Potential Impact

An authenticated client can cause a denial of service by triggering catastrophic backtracking in the regular expression engine, which blocks the Twisted server's single-threaded reactor. This results in suspension of all server input and output during the match, potentially disrupting service availability. There is no impact on confidentiality or integrity reported.

Mitigation Recommendations

No official fix or patch is currently available for this vulnerability. Users should monitor vendor advisories for updates. Until a fix is released, limiting authenticated client access or applying external mitigations to restrict complex pattern inputs may reduce risk, but no vendor-recommended mitigations are documented.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
UBUNTU-CVE-2026-106454
Osv Schema Version
1.7.0
Ecosystems
["Ubuntu:Pro:14.04:LTS","Ubuntu:Pro:16.04:LTS","Ubuntu:Pro:18.04:LTS","Ubuntu:20.04:LTS","Ubuntu:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:26.10","Ubuntu:26.04:LTS"]
Cvss Version
3.1

Threat ID: 6ad3f4eb2cdf04f656656df1

Added to database: 10/17/2026, 22:21:31 UTC

Last enriched: 10/17/2026, 22:37:38 UTC

Last updated: 10/17/2026, 22:37:38 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses