PT-2026-66885 · Pypi · Nltk

CVE-2026-12061

·

Published

2026-07-31

·

Updated

2026-08-13

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions NLTK (affected versions not specified)
Description ReviewsCorpusReader is susceptible to a Regular Expression Denial of Service (ReDoS) when extracting feature annotations. The issue occurs because the FEATURES regex uses an unbounded greedy pattern to match labels. When processing a long line that lacks the expected bracketed signed digit (e.g., [+2]), the engine performs quadratic backtracking, attempting to match the label from every possible starting position to the end of the line. This can lead to a denial of service, hanging the reviews(), features(), and sents() functions. For instance, a single crafted line containing approximately 100,000 words can consume CPU resources for several seconds or minutes, stalling the calling thread or process.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

DoS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-12061
ECHO-330D-604F-B5E0
GHSA-FG7F-2386-8897
PYSEC-2026-3582

Affected Products

Nltk