# CVE-2026-129228: NLTK: Uncontrolled recursion in Toolbox settings helpers causes denial of service via deeply nested input

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 46% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-19T18:03:36.290Z
- Modified: 2026-11-20T00:00:05.086Z
- Also known as: GHSA-f2h2-f4fc-p978
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- nltk nltk: < 3.10.4
- nltk (PyPI): before 3.10.4

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/nltk/nltk/security/advisories/GHSA-f2h2-f4fc-p978> (exploit, web)
- <https://github.com/nltk/nltk/pull/3885> (web)
- <https://github.com/nltk/nltk/commit/0b6975377d0334af604d32c9d83b26b46e1d437c> (web)
- <https://github.com/nltk/nltk/releases/tag/v3.10.4> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-129228> (advisory)
- <https://github.com/nltk/nltk> (package)

## Sources

- CVE List: [CVE-2026-129228](https://www.cve.org/CVERecord?id=CVE-2026-129228), CVE Terms of Use, modified 2026-11-19
- GitHub Advisory Database: [GHSA-f2h2-f4fc-p978](https://github.com/advisories/GHSA-f2h2-f4fc-p978), CC-BY-4.0, modified 2026-11-20
- NVD: [CVE-2026-129228](https://nvd.nist.gov/vuln/detail/CVE-2026-129228), Public domain, modified 2026-11-19

---

Page: https://cve.day/CVE-2026-129228 · Whole record: https://cve.day/CVE-2026-129228.json · Rebuilt by cve.day 2026-11-25T22:59:52.175Z
