CVE-2026-12061: Gptline · Natural Language Toolkit (NLTK): ReDoS in NLTK ReviewsCorpusReader FEATURES regex
Affects gptlineSource GCVE Database
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
- 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:HExploitation evidence
Disclosed: evidence found.
CVE published 13 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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
| Product | Affected | Fixed in |
|---|---|---|
| PyPInltk | Affected
| Fixed in
|
Homebrewgptlinepkg:brew/gptlineOther threats | Affected
| 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 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.