CVE-2026-80205: NLTK before 3.10.0 ReDoS via Text.findall() unvalidated regex

Published Aug 26, 2026
·
Updated

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.

Affected Software

1 affected component
pypi/nltk<3.10.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade NLTK to a version that resolves this vulnerability.

    Fixed in 3.10.0
  2. Compensating control

    Apply a validation and timeout mechanism for user-supplied regular expressions passed to NLTK Text.findall() and TokenSearcher.findall() (to prevent catastrophic backtracking/indefinite CPU saturation).

Event History

Aug 26, 2026
CVE Published
via MITRE·10:28 AM
Data Sourced
via MITRE·10:28 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications using NLTK versions before 3.10.0 are exposed when they pass attacker-controlled regular-expression patterns to Text.findall() or TokenSearcher.findall(). The impact is denial of service against the Python process running the affected code.

2

Does exploitation require authentication or user interaction?

No. The provided vector indicates network-reachable exploitation with low attack complexity, no privileges, and no user interaction, provided an attacker can supply a regex pattern to an affected method.

3

What is the immediate mitigation if upgrading is not possible?

Do not allow untrusted users to provide arbitrary regular expressions to Text.findall() or TokenSearcher.findall(). Restrict accepted patterns or otherwise validate them before calling these methods, since the affected versions have no regex validation or timeout.

4

How can I determine whether my deployment is affected?

Check whether the application uses NLTK before version 3.10.0 and whether it calls Text.findall() or TokenSearcher.findall() with regex patterns influenced by external input. Affected executions may show sustained or indefinite CPU consumption in the Python process when processing crafted patterns.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203