CVE Feed
5.3 Medium

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

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
Before you submit *

Query this programmatically

Agents can read this through the MCP endpoint, or over HTTP:

curl https://cve.zerocrew.in/api/cve/CVE-2026-129228