Skip to main content
← All vulnerabilities
CVE-2026-80206GHSA-W3V8-GMH9-3WV7PYSEC-2026-3751

NLTK 3.10.2 Regular Expression Denial of Service via tgrep

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.10.3
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

NLTK before 3.10.3 contains a regular expression denial of service (ReDoS) vulnerability in the tgrep module. The _tgrep_node_action function compiles user-supplied regular expressions embedded in /regex/ pattern nodes and executes them via re.search against tree node labels without any validation or timeout. An attacker who controls the tgrep pattern (e.g., via tgrep_positions() or tgrep_compile() exposed to external input) can supply a pattern that triggers catastrophic backtracking, causing indefinite CPU saturation that blocks the Python process.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • nltk nltk

    fixed in 3.10.3

  • nltkPyPI

    fixed in 3.10.3

References 2

GitHub · nltk/nltk

vulncheck.com