{"id":2298,"cve":"CVE-2026-80205","cve_url":"https:\/\/www.cvedetails.com\/cve\/CVE-2026-80205\/","cwe":"CWE-1333","cwe_number":1333,"cwe_url":"https:\/\/cwe.mitre.org\/data\/definitions\/1333","cvss_score":8.7,"published":"2026-08-26","owasp":"A06 Vulnerable and Outdated Components","odc":"Timing\/Serialization","cdc":"Timing Issues","category":"Input Validation and Sanitization","subcategory":"Insecure Parsing or Deserialization","scope":"Remote","impact":"Denial of Service (DoS)","summary":"Regex DoS in NLTK\u00a0\u22643.9 via Text\/TokenSearcher findall allowing unchecked regex.","permalink":"https:\/\/netpack.pt\/vaitp\/vulnerability\/CVE-2026-80205\/","description":"NLTK versions before 3.10.0 contain a regular expression denial of service vulnerability in Text.findall() and TokenSearcher.findall() methods that accept user-supplied regular expressions without validation or timeout. Attackers can supply crafted regex patterns that cause catastrophic backtracking, resulting in indefinite CPU saturation and denial of service to all users of the Python process.","solution":"Upgrade NLTK to version\u202f3.10.0\u202for later.","affected_component":"NLTK","fixed_by_upgrading":true,"vulnerable_code":"import nltk\nfrom nltk.text import Text\n\ndef find_matches(tokens, user_regex):\n    \"\"\"\n    Returns all matches of a user\u2011supplied regular expression\n    within an NLTK Text object.\n    \"\"\"\n    txt = Text(tokens)\n    # VULNERABLE: passes user regex directly to NLTK, enabling catastrophic backtracking\n    return txt.findall(user_regex)\n","patched_code":"import nltk\nfrom nltk.text import Text\nimport regex\n\ndef find_matches(tokens, user_regex):\n    \"\"\"\n    Returns all matches of a user\u2011supplied regular expression\n    within an NLTK Text object, using a timeout to prevent\n    catastrophic backtracking.\n    \"\"\"\n    txt = Text(tokens)\n    # FIX: compile regex with a timeout and use safe findall\n    safe_re = regex.compile(user_regex, timeout=0.5)\n    # regex.findall works on strings; join tokens to a single string.\n    return safe_re.findall(\" \".join(txt))\n","payload_needed":true,"payload":null,"payload_status":"model_refused","published_fix":[{"repository":"nltk\/nltk","commit_url":"https:\/\/github.com\/nltk\/nltk\/commit\/d8e47539317b571ab1422981f5b9653d5eae1249","commit_subject":"fix(security): Quadratic ReDoS in NLTK Text.findall token search (#3674)","units":[{"file":"nltk\/text.py","function":null},{"file":"nltk\/text.py","function":"Text.findall"},{"file":"nltk\/text.py","function":"TokenSearcher.findall"}]}],"references":null}