CVE-2026-81724: Uncontrolled recursion in nltk.featstruct.FeatStructReader causes unhandled RecursionError (DoS) via deeply nested feature-structure input
Affects gptlineSource GCVE Database
Not known to be exploited · CVSS 5.3 Medium : upgrade to 1.0.8_23 when convenient.
Data as of 1 Nov 2026, 22:58 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 39% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.0.8_23
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LExploitation evidence
Disclosed: evidence found.
CVE published 2 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 to address this vulnerability by adding recursion depth limits similar to other NLTK parsers. Users should apply the official fix to prevent unhandled RecursionError crashes. Until patched, avoid parsing untrusted or deeply nested feature-structure inputs. No additional mitigations are required beyond applying the patch.
Description
A denial of service vulnerability exists in the NLTK library's FeatStructReader parser due to uncontrolled recursion when processing deeply nested feature-structure strings. The parser lacks a maximum recursion depth limit, causing Python's RecursionError to be raised and crash applications that parse untrusted input. This affects NLP tools and pipelines using FeatStruct or FeatureGrammar.fromstring(). The issue is not related to memory safety or code execution but results in application crashes. A patch is available to address this issue.
References
- github.com/nltk/nltk/security/advisories/GHSA-cw6x-m8jw-qmrh (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-81724 (opens in a new tab)
- github.com/nltk/nltk/commit/43c7b78cc8ea37e5cd3a129e27e32c415ea21cf1 (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)
- github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3739.yaml (opens in a new tab)
- vulncheck.com/advisories/nltk-before-3.10.3-denial-of-service-via-uncontrolled-recursion (opens in a new tab)