CVE-2026-129228
Awaiting Analysis Awaiting Analysis - Queue

RecursionError in NLTK ToolboxSettings.parse due to unbounded tree traversal

Vulnerability report for CVE-2026-129228, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-19

Last updated on: 2026-11-19

Assigner: GitHub, Inc.

Description

NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. Prior to 3.10.4, ToolboxSettings.parse builds a deeply nested attacker-controlled settings tree iteratively, but the later public helpers to_settings_string, remove_blanks, add_default_fields, sort_fields, and add_blank_lines recursively traverse that tree without a depth bound. Invoking any of those helpers on input nested beyond the interpreter recursion limit can raise RecursionError and abort the operation or request worker. This issue is fixed in version 3.10.4.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-19
Last Modified
2026-11-19
Generated
2026-11-20
AI Q&A
2026-11-20
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
nltk nltk 3.10.4

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-674 The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in NLTK (versions <= 3.10.3) involves uncontrolled recursion in Toolbox settings helpers. Functions like _to_settings_string and remove_blanks recursively traverse attacker-controlled nested input without a depth limit. When input nesting exceeds Python's recursion limit, it causes a RecursionError, aborting operations or workers. This leads to a denial of service (DoS) without affecting confidentiality or integrity.

Detection Guidance

This vulnerability is specific to NLTK's Toolbox settings parsing and does not have direct network or system-level detection methods. However, you can check NLTK versions in use with: pip show nltk or pip list | grep nltk. If versions <= 3.10.3 are detected, the system is vulnerable.

Impact Analysis

An attacker could exploit this by providing a deeply nested Toolbox settings file, causing a RecursionError. This would terminate the affected operation or request worker, resulting in a denial of service. The impact is limited to availability, with no compromise of data confidentiality or integrity.

Mitigation Strategies

Upgrade NLTK to version 3.10.4 or later immediately using: pip install --upgrade nltk. If upgrading is not possible, avoid processing untrusted Toolbox settings files or implement custom depth limits in affected helper functions.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-129228. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...