Skip to main content
EPSS 0.7%top 47%

Gptline: NLTK TweetTokenizer vulnerable to denial of service through catastrophic regex backtracking (CVE-2026-72818)

0
High
Published: 09/03/2026 (09/03/2026, 09:08:38 UTC)
Source: GCVE Database
Product: gptline

Description

The NLTK TweetTokenizer in gptline is vulnerable to a denial of service caused by catastrophic regex backtracking in its URL matching regular expression. This flaw allows crafted input with many alternating label separators to cause exponential processing time, potentially stalling services that tokenize untrusted social media text. A fix bounding the label repetition was introduced in version 3.10.1.

CVSS v3.1

Score 7.5high

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

Affected software

Ubuntu:Pro:14.04:LTSmore threats →ghsa
nltk
pkg:deb/ubuntu/nltk?arch=source&distro=esm-infra-legacy/trusty
Affected versions
=2.0~b9-0ubuntu4=2.0~b9-0ubuntu4.1~esm2=2.0~b9-0ubuntu4.1~esm4=2.0~b9-0ubuntu4.1~esm5=2.0~b9-0ubuntu4.1~esm6
Ubuntu:Pro:16.04:LTSmore threats →ghsa
nltk
pkg:deb/ubuntu/nltk?arch=source&distro=esm-apps-legacy/xenial
Affected versions
=3.0.4-1=3.0.5-1=3.1-1=3.1-1ubuntu0.1=3.1-1ubuntu0.1+esm1=3.1-1ubuntu0.1+esm2=3.1-1ubuntu0.1+esm3=3.1-1ubuntu0.1+esm4
Ubuntu:Pro:18.04:LTSmore threats →ghsa
nltk
pkg:deb/ubuntu/nltk?arch=source&distro=esm-apps/bionic
Affected versions
=3.2.4-1=3.2.5-1=3.2.5-1ubuntu0.1=3.2.5-1ubuntu0.1+esm1=3.2.5-1ubuntu0.1+esm2=3.2.5-1ubuntu0.1+esm3=3.2.5-1ubuntu0.1+esm4
Ubuntu:Pro:20.04:LTSmore threats →ghsa
nltk
pkg:deb/ubuntu/nltk?arch=source&distro=esm-apps/focal
Affected versions
=3.4.5-1=3.4.5-2=3.4.5-2ubuntu0.1~esm1=3.4.5-2ubuntu0.1~esm2=3.4.5-2ubuntu0.1~esm3=3.4.5-2ubuntu0.1~esm4
Ubuntu:Pro:22.04:LTSmore threats →ghsa
nltk
pkg:deb/ubuntu/nltk?arch=source&distro=esm-apps/jammy
Affected versions
=3.5-1=3.6.5-1=3.6.7-1=3.7-1=3.7-1ubuntu0.1~esm1=3.7-1ubuntu0.1~esm2
Ubuntu:Pro:24.04:LTSmore threats →ghsa
nltk
pkg:deb/ubuntu/nltk?arch=source&distro=esm-apps/noble
Affected versions
=3.8.1-1=3.8.1-1ubuntu0.1~esm1=3.8.1-1ubuntu0.1~esm2
Ubuntu:Pro:26.04:LTSmore threats →ghsa
nltk
pkg:deb/ubuntu/nltk?arch=source&distro=esm-apps/resolute
Affected versions
=3.9.1-2=3.9.1-2build1=3.9.2-1=3.9.2-1ubuntu0.1~esm1=3.9.2-1ubuntu0.1~esm2
Homebrewmore threats →ghsa
gptline
pkg:brew/gptline
Affected versions
>=1.0.8 <1.0.8_23

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: 09/18/2026, 02:17:10 UTC

Technical Analysis

The vulnerability (CVE-2026-72818) resides in the URLS regular expression within nltk/tokenize/casual.py, compiled into TweetTokenizer.WORD_RE and used by TweetTokenizer.tokenize. The regex contains an unbounded naked-domain branch with a domain-label prefix pattern that can be partitioned in exponentially many ways when given input with many alternating label separators. Because the regex requires a trailing top-level domain that crafted input lacks, the regex engine explores all partitions before failing, causing severe CPU consumption and denial of service. The HANG_RE substitution does not mitigate this. This affects services applying TweetTokenizer or casual_tokenize to untrusted text. Version 3.10.1 introduced bounding of label repetition to fix the issue.

Potential Impact

An attacker can cause denial of service by submitting crafted text that triggers catastrophic backtracking in the TweetTokenizer regex, resulting in high CPU usage and service stalls. There is no impact on confidentiality or integrity. The vulnerability requires no authentication and can be triggered remotely by submitting malicious input to affected services.

Mitigation Recommendations

A patch is available that bounds the label repetition in the vulnerable regex, introduced in version 3.10.1. Users should upgrade to version 3.10.1 or later to remediate this vulnerability. Until patched, avoid applying TweetTokenizer or casual_tokenize to untrusted input or implement input validation to limit input complexity.

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-72818
Osv Schema Version
1.7.0
Ecosystems
["Ubuntu:Pro:14.04:LTS","Ubuntu:Pro:16.04:LTS","Ubuntu:Pro:18.04:LTS","Ubuntu:Pro:20.04:LTS","Ubuntu:Pro:22.04:LTS","Ubuntu:Pro:24.04:LTS","Ubuntu:Pro:26.04:LTS"]
Cvss Version
3.1

Threat ID: 6a9053e7acd9273b49696867

Added to database: 08/27/2026, 15:12:39 UTC

Last enriched: 09/18/2026, 02:17:10 UTC

Last updated: 10/10/2026, 18:48:22 UTC

Views: 56

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