← Back to CVE search

CVE-2026-81725

NLTK

Description

NLTK before 3.10.3 contains a regular expression denial of service vulnerability in Pl196xCorpusReader that allows attackers to cause quadratic CPU consumption by supplying malformed TEI blocks with many unmatched opening tags. Attackers can exploit lazy regex patterns in the read_block method through public APIs like words() and tagged_words() to force repeated rescans and achieve near-quadratic runtime growth.

CVSS 3.7EPSS 0.22200000000000003%Risk 0.38
View source
Published
2026-08-27 17:21:03
Affected versions
<3.10.3
Type
Library
Last modified
2026-08-27 17:21:03
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L