# CVE-2026-129226: NLTK: Uncontrolled recursion in semantic-logic type parser causes denial of service via nested type strings

- 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.48%, higher than 43% of CVEs (2026-12-01)
- Published: 2026-11-19T17:30:20.002Z
- Modified: 2026-11-20T00:00:04.082Z
- Also known as: GHSA-w3pv-xfw4-ghr7
- 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, the semantic-logic read_type parser recursively processes both halves of nested complex type strings without applying LogicParser.MAX_PARSE_DEPTH. An attacker-controlled type string or signature with excessive nesting can raise RecursionError through Type.fromstring or type-checking entry points and abort 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 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-w3pv-xfw4-ghr7> (web)
- <https://github.com/nltk/nltk/pull/3885> (web)
- <https://github.com/nltk/nltk/commit/2f4f0d47e2c452c89cabc2a5f761332d51066ea8> (web)
- <https://github.com/nltk/nltk/commit/a8036c5e7f820ac09c96b969d6e7f19bfa6e6aeb> (web)
- <https://github.com/nltk/nltk/releases/tag/v3.10.4> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-129226> (advisory)
- <https://github.com/nltk/nltk> (package)

## Sources

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

---

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