CVE-2026-12876: NLTK · Uncontrolled resource consumption in RecursiveDescentParser via ambiguous or left-recursive grammars
Affects gptlineSource GCVE Database
Mentioned vulnerabilities
Not known to be exploited · CVSS 6.9 Medium : upgrade to 1.0.8_23 when convenient.
Data as of 18 Sep 2026, 01:51 UTC
- Patch
- Available – fixed in 1.0.8_23
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 3 Sep 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 1 Nov 2026.
What to do
Upgrade gptline to 1.0.8_23.
Affected software
| Product | 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 for this vulnerability. Users should update to a fixed version of the affected software to prevent denial of service via crafted grammars or inputs. Avoid running RecursiveDescentParser on grammars or inputs from untrusted sources until patched.
Description
The RecursiveDescentParser and SteppingRecursiveDescentParser components in NLTK can be exploited by crafted ambiguous or left-recursive grammars to cause unbounded CPU consumption or stack exhaustion, resulting in denial of service. This affects applications that parse grammars or inputs from untrusted sources. There is no impact on confidentiality or integrity, only on availability of the affected process. A patch is available to address this issue.
References
- github.com/nltk/nltk/security/advisories/GHSA-ff5c-cp5c-9wjf (opens in a new tab)
- github.com/nltk/nltk/pull/3649 (opens in a new tab)
- github.com/nltk/nltk/commit/43aaca1b9024138421c97f970bf13ee19ac8129d (opens in a new tab)
- github.com/nltk/nltk (opens in a new tab)
- github.com/nltk/nltk/releases/tag/v3.10.3 (opens in a new tab)