CVE-2026-129228: Uncontrolled Recursion
Published 2026-11-19 · Updated 2026-11-19 · Source security-advisories@github.com
Not known to be exploited · medium severity — update to 3.10.4 or later on your normal schedule.
What to do
- Update the affected product to version 3.10.4 or later. Versions before 3.10.4 are affected.
- Until it is patched, do not leave the affected product reachable from the internet or other untrusted networks; restrict access by firewall, VPN or allow-list.
- Limit input size and nesting depth in front of the affected component.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| Affected product | < 3.10.4 | 3.10.4 |
Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.
How it can be exploited
It can be exploited remotely over the network; the attacker does not need an account, and no action by a victim is required. Attack complexity is low, so a working exploit is expected to be reliable. The impact is limited: availability is rated low.
| Attack vector | Network | It can be exploited remotely over the network. |
|---|---|---|
| Attack complexity | Low | No special conditions are needed; the attack is repeatable. |
| Privileges required | None | The attacker does not need an account. |
| User interaction | None | No action by a victim is needed. |
| Confidentiality | None | No effect on confidentiality. |
| Integrity | None | No effect on integrity. |
| Availability | Low | Partial loss of availability. |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Weakness: Uncontrolled Recursion
Deeply nested input exhausts the stack and crashes the process.
Classified as CWE-674.
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.
Advisory text as published in the NVD record.
References
- Patchhttps://github.com/nltk/nltk/commit/0b6975377d0334af604d32c9d83b26b46e1d437c
- Patchhttps://github.com/nltk/nltk/pull/3885
- Patchhttps://github.com/nltk/nltk/releases/tag/v3.10.4
- Advisoryhttps://github.com/nltk/nltk/security/advisories/GHSA-f2h2-f4fc-p978
- Advisoryhttps://github.com/nltk/nltk/security/advisories/GHSA-f2h2-f4fc-p978