CVE-2026-81725
Analyzed Analyzed - Analysis Complete

NLTK Regex DoS in Pl196xCorpusReader

Vulnerability report for CVE-2026-81725, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-27

Last updated on: 2026-09-01

Assigner: VulnCheck

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 Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-27
Last Modified
2026-09-01
Generated
2026-09-17
AI Q&A
2026-08-27
EPSS Evaluated
2026-09-15
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
nltk nltk to 3.10.3 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-400 The product does not properly control the allocation and maintenance of a limited resource.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a Regular Expression Denial of Service (ReDoS) vulnerability in NLTK versions before 3.10.3. It occurs in the Pl196xCorpusReader component where lazy regex patterns in the read_block method cause quadratic CPU consumption when processing malformed TEI blocks with many unmatched opening tags. Attackers can trigger this through public APIs like words() and tagged_words().

Detection Guidance

Check NLTK version with pip show nltk. If version is below 3.10.3, the system is vulnerable. Monitor CPU usage spikes when processing TEI blocks or XML-like files with many unmatched opening tags.

Impact Analysis

An attacker could exploit this to cause high CPU usage and system slowdowns by providing specially crafted input. This may lead to degraded performance or temporary unavailability of services relying on NLTK for text processing tasks.

Compliance Impact

This vulnerability does not directly affect compliance with GDPR, HIPAA, or similar standards as it is a performance issue rather than a data protection or privacy breach. Standards like GDPR focus on unauthorized data access or processing, while HIPAA addresses protected health information safeguards. This ReDoS issue primarily impacts system availability and performance.

Mitigation Strategies

Upgrade NLTK to version 3.10.3 or later using pip install --upgrade nltk. Avoid processing untrusted TEI blocks or XML-like files with many unmatched opening tags until patched.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-81725. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart