CVE-2026-33236: NLTK Downloader Path Traversal Vulnerability Leading to Arbitrary File Overwrite

nltk Updated 19 Mar 2026

Summary

19/03/2026
No i
High
8.1

CVE-2026-33236: NLTK has a Downloader Path Traversal Vulnerability (AFO) - Arbitrary File Overwrite. Affects nltk versions < 3.9.2. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

NLTK (Natural Language Toolkit) is a powerful library in Python used for working with human language data (text). It provides easy-to-use interfaces to over 50 corpora and lexical resources, along with a suite of text processing libraries for classification, tokenization, stemming, tagging, parsing, and more. However, the NLTK downloader has a critical vulnerability that allows attackers to exploit path traversal sequences, potentially leading to unauthorized file access and manipulation.

Vulnerability Detail

The NLTK downloader does not validate the 'subdir' and 'id' attributes when processing remote XML index files. This oversight allows attackers to control a remote XML index server to provide malicious values that can include path traversal sequences (e.g., '../'). As a result, attackers can create arbitrary directories, create arbitrary files, and overwrite critical system files, such as '/etc/passwd' or '~/.ssh/authorized_keys'. The vulnerability arises from the lack of validation in XML parsing and path construction, enabling an attack chain that can compromise system integrity.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, avoid using the NLTK downloader to fetch packages from untrusted sources. If you must use it, ensure that the XML index server is controlled and trusted. Additionally, consider implementing file system permissions that restrict write access to sensitive directories.

Conclusion

The NLTK downloader vulnerability (CVE-2026-33236) poses a significant risk due to its potential for arbitrary file overwrite through path traversal. It is crucial for users to update to the latest version of NLTK and to implement best practices for security to mitigate the risks associated with this vulnerability.

See every vulnerability recorded for nltk →

Share this vulnerability

FAQ

CVE-2026-33236 is a vulnerability in the NLTK downloader that allows for path traversal, leading to arbitrary file overwrite.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which monitors open-source vulnerabilities in real-time.

The vulnerability can lead to unauthorized file creation and overwriting of critical system files, which may compromise system security and integrity.

You can update NLTK by running 'pip install --upgrade nltk' in your terminal to ensure you have the latest patched version.

The CVSS score of this vulnerability is 8.1, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for nltk.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback