Skip to main content
CVE-2026-72818VulnerabilityPublished Updated

nltk/tokenize/casual.py, compiled into TweetTokenizer.WORD_RE · URLS Regular Expression

Affects nltkSource GCVE Database

0
Compare
Authoritative record:CVE-2026-72818· High 8.7

Not known to be exploited · CVSS 8.7 High : upgrade to 3.10.1 soon.

Data as of 25 Nov 2026, 14:04 UTC

CVSS 4.0 base score
8.7High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.7% chance of exploitation in 30 days – higher than 50% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1.0.8_23, 3.10.1
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 20 Aug 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 25 Nov 2026.

What to do

Upgrade nltk to 3.10.1; gptline to 1.0.8_23.

Affected software

ProductAffectedFixed in
Ubuntu Pro 14.04 LTSnltkpkg:deb/ubuntu/nltk?arch=source&distro=esm-infra-legacy/trustyOther threatsAffected
  • 2.0~b9-0ubuntu4 – 2.0~b9-0ubuntu4.1~esm6
5 affected builds
Fixed in–
Ubuntu Pro 16.04 LTSnltkpkg:deb/ubuntu/nltk?arch=source&distro=esm-apps-legacy/xenialOther threatsAffected
  • 3.0.4-1 – 3.1-1ubuntu0.1+esm4
8 affected builds
Fixed in–
Ubuntu Pro 18.04 LTSnltkpkg:deb/ubuntu/nltk?arch=source&distro=esm-apps/bionicOther threatsAffected
  • 3.2.4-1 – 3.2.5-1ubuntu0.1+esm4
7 affected builds
Fixed in–
Ubuntu Pro 20.04 LTSnltkpkg:deb/ubuntu/nltk?arch=source&distro=esm-apps/focalOther threatsAffected
  • 3.4.5-1 – 3.4.5-2ubuntu0.1~esm4
6 affected builds
Fixed in–
Ubuntu Pro 22.04 LTSnltkpkg:deb/ubuntu/nltk?arch=source&distro=esm-apps/jammyOther threatsAffected
  • 3.5-1 – 3.7-1ubuntu0.1~esm2
6 affected builds
Fixed in–
Ubuntu Pro 24.04 LTSnltkpkg:deb/ubuntu/nltk?arch=source&distro=esm-apps/nobleOther threatsAffected
  • =3.8.1-1
  • =3.8.1-1ubuntu0.1~esm1
  • =3.8.1-1ubuntu0.1~esm2
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A fix is available in NLTK version 3.10.1 and later, which bounds the label repetition in the URL matching regex to prevent catastrophic backtracking. Users should upgrade to version 3.10.1 or newer to remediate this vulnerability.

Description

The NLTK TweetTokenizer in gptline contains a denial of service vulnerability due to catastrophic regex backtracking in its URL matching regular expression. This flaw can cause exponential processing time when handling crafted inputs with many alternating label separators, potentially stalling services that tokenize untrusted social media text. A fix bounding the label repetition was introduced in version 3.10.1.

References

Community reviews

Loading reviews…