NLTK: Uncontrolled recursion in Toolbox settings helpers causes denial of service via deeply nested input
CVE-2026-129228
Root Cause The Toolbox settings-tree helpers recurse over the parsed element tree without any depth bound. tosettingsstring (nltk/toolbox.py:418), removeblanks (nltk/toolbox.py:432), adddefaultfields (nltk/toolbox.py:451), sortfields (nltk/toolbox.py:484), and addblanklines (nltk/toolbox.py:502,516) each recurse once per element level with no depth counter or explicit stack. The producer ToolboxSettings.parse builds the element tree iteratively, so nesting depth is driven entirely by attacker-supplied \+marker / \-marker pairs. Impact An application that parses an untrusted Toolbox settings file and then serialises or transforms it through any of the public helper functions aborts with an unhandled RecursionError, terminating the affected operation or request worker (denial of service, CWE-674). The recursion is pure Python, yielding a catchable RecursionError rather than memory corruption or code execution. Confidentiality and integrity are unaffected. Attack Chain 1. The application parses an untrusted settings file via ToolboxSettings.openstring / open plus parse, producing an N-deep element tree; parsing is iterative and completes without error. 2. The application passes the…
Assessment
- CVSS
- 5.3 (v3.1)
- Severity
- Medium
- Known exploited
- Not listed in CISA KEV
- Exploit availability
- Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
- Published
- 19 November 2026
- Last updated
- 19 November 2026
- Affected
- nltk
- Weakness
- CWE-674
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
At the source
References
- https://github.com/nltk/nltk/security/advisories/GHSA-f2h2-f4fc-p978
- https://nvd.nist.gov/vuln/detail/CVE-2026-129228
- https://github.com/nltk/nltk/pull/3885
- https://github.com/nltk/nltk/commit/0b6975377d0334af604d32c9d83b26b46e1d437c
- https://github.com/nltk/nltk/releases/tag/v3.10.4
- https://github.com/advisories/GHSA-f2h2-f4fc-p978
Community proofs of concept
No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.
Submit a proof of concept
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-129228