CVE Catalog

CVE-2026-33236

HighCVSS 8.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.50%

40th percentile - higher than 40% of all known CVEs

Summary

In NLTK (Natural Language Toolkit) versions 3.9.3 and prior, the downloader does not validate the `subdir` and `id` attributes when processing remote XML index files. Attackers can control a remote XML index server to provide malicious values containing path traversal sequences (such as `../`), leading to arbitrary directory creation, arbitrary file creation, and arbitrary file overwrite.

Risk Assessment

The organization is at risk of remote code execution or modification of critical system files by exploiting this vulnerability during NLTK data downloads. An attacker could overwrite configuration files or libraries, potentially leading to full system compromise.

Recommendation

Immediately update NLTK to a version containing the fix (commit 89fe2ec2c6bae6e2e7a46dad65cc34231976ed8a) or later. If an update is not possible, restrict access to trusted XML servers and implement path validation mechanisms.

Other vulnerabilities in NLTK

See all
Original NVD description (English source)

NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. In versions 3.9.3 and prior, the NLTK downloader does not validate the `subdir` and `id` attributes when processing remote XML index files. Attackers can control a remote XML index server to provide malicious values containing path traversal sequences (such as `../`), which can lead to arbitrary directory creation, arbitrary file creation, and arbitrary file overwrite. Commit 89fe2ec2c6bae6e2e7a46dad65cc34231976ed8a patches the issue.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS