CVE-2026-126301: NLTK from 3.6 before 3.10.4 Quadratic CPU Exhaustion via LegalitySyllableTokenizer.tokenize

Published Nov 13, 2026
·
Updated

NLTK from 3.6 before 3.10.4 contains an algorithmic complexity vulnerability in LegalitySyllableTokenizer.tokenize that allows remote attackers to exhaust CPU by supplying long all-vowel tokens. Attackers can submit a token such as a long run of vowels, causing the unguarded onset reversal loop to perform quadratic work and deny service to syllabification components.

Affected Software

1 affected component
pypi/nltk>=3.6<3.10.4

Event History

Nov 13, 2026
CVE Published
via MITRE·09:36 AM
Data Sourced
via MITRE·09:36 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:17 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Deployments using NLTK versions from 3.6 up to, but not including, 3.10.4 are affected when they use LegalitySyllableTokenizer.tokenize on attacker-controlled input. The impacted functionality is syllabification components that process submitted tokens.

2

What does an attacker need to exploit it?

An attacker can exploit the issue remotely without privileges or user interaction by supplying a long token consisting entirely of vowels. This input causes the tokenizer's unguarded onset-reversal loop to perform quadratic CPU work.

3

What is the impact of successful exploitation?

Successful exploitation can exhaust CPU resources and deny service to affected syllabification components. The provided severity vector indicates availability impact only, with no stated confidentiality or integrity impact.

4

What should be done if an immediate upgrade is not possible?

The provided information identifies long all-vowel tokens as the triggering input. Restricting or rejecting excessively long tokens before they reach LegalitySyllableTokenizer.tokenize can reduce exposure until an upgrade is possible.

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