# CVE-2026-129222: Natural Language Toolkit (NLTK): Uncontrolled recursion (crash DoS) in DependencyGraph.tree()/triples()

- Severity: High 7.5 (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:H`
- 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.56%, higher than 48% of CVEs (2026-12-01)
- Published: 2026-11-19T17:25:39.854Z
- Modified: 2026-11-20T00:00:04.065Z
- Also known as: GHSA-rh8m-wqhc-qmrf
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation none, 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, DependencyGraph.tree and DependencyGraph.triples walk parsed dependency edges through unbounded Python recursion and do not use a working cycle or depth guard. A crafted CoNLL or Malt-TAB dependency file containing a sufficiently long chain can raise RecursionError when the documented traversal APIs are called, aborting the current 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 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/nltk/nltk/security/advisories/GHSA-rh8m-wqhc-qmrf> (web)
- <https://github.com/nltk/nltk/pull/3885> (web)
- <https://github.com/nltk/nltk/commit/a74682757cee8c11128ad277d2f2bd0b8e1884ff> (web)
- <https://github.com/nltk/nltk/releases/tag/v3.10.4> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-129222> (advisory)
- <https://github.com/nltk/nltk> (package)

## Sources

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

---

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