Skip to main content
VulnerabilityPublished Updated

CVE-2026-12061: Gptline · Natural Language Toolkit (NLTK): ReDoS in NLTK ReviewsCorpusReader FEATURES regex

Affects gptlineSource GCVE Database

0
Compare

Not known to be exploited · CVSS 7.5 High : upgrade to 1.0.8_22 soon.

Data as of 18 Sep 2026, 02:18 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 3.10.0, 1.0.8_22
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 13 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 29 Oct 2026.

What to do

Upgrade gptline to 1.0.8_22; nltk to 3.10.0.

Affected software

ProductAffectedFixed in
PyPInltkAffected
  • <3.10.0
Fixed in
  • 3.10.0
Homebrewgptlinepkg:brew/gptlineOther threatsAffected
  • >=1.0.8 <1.0.8_22
Fixed in
  • 1.0.8_22

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

AI-suggested

A patch is available that bounds the regex pattern to prevent quadratic backtracking. Users should apply the official fix to update the FEATURES regex in ReviewsCorpusReader as per PR #3583 or later versions. This fix caps the number of words matched in the label, eliminating the ReDoS condition while preserving correct feature extraction. No additional mitigations are required once patched.

Description

CVE-2026-12061 is a Regular Expression Denial of Service (ReDoS) vulnerability in the Natural Language Toolkit (NLTK) ReviewsCorpusReader component used by the gptline product. The vulnerability arises from an unbounded greedy regex pattern in the FEATURES regex, which extracts feature annotations from review lines. When processing a long bracket-less line, the regex causes quadratic backtracking, leading to excessive CPU consumption and hanging the processing thread. This can be exploited by an attacker supplying a crafted review line to cause denial of service without requiring authentication or privileges. A patch is available that bounds the regex to prevent the quadratic behavior while preserving correct extraction on legitimate input.

References

Community reviews

Loading reviews…