Nltk
CVE-2025-14009
HIGH
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv5 – Jun 30, 2026
Arbitrary code execution in the NLTK (Natural Language Toolkit) Python library affects all versions through its data downloader: the _unzip_iter function in nltk/downloader.py calls zipfile.extractall() with no path validation, so a malicious data package can drop attacker-controlled Python files (e.g. __init__.py) that execute automatically on import. Any application that downloads NLTK data from an attacker-influenced source is exposed to full remote code execution. Publicly available exploit code exists (huntr.com bounty), EPSS is modest at 0.57% (68th percentile), and there is no public exploit identified as actively exploited in CISA KEV.
Earlier versions of this analysis (4)
Arbitrary code execution in the NLTK (Natural Language Toolkit) Python library affects all versions, where the downloader's _unzip_iter function in nltk/downloader.py calls zipfile.extractall() with no path validation. Because NLTK treats every downloaded data package as trusted, a malicious zip can drop Python files (e.g. __init__.py) that execute automatically on import, yielding full remote code execution. Publicly available exploit code exists (reported via huntr) and a vendor patch is available; EPSS is modest at 0.57% (68th percentile) and the issue is not listed in CISA KEV.
Arbitrary code execution in NLTK (Natural Language Toolkit, all versions) arises because the downloader's _unzip_iter function in nltk/downloader.py calls zipfile.extractall() with no path validation or content checks, trusting every downloaded data package. A malicious package can drop Python files such as __init__.py that execute automatically on import, yielding remote code execution and full host compromise. Publicly available exploit code exists and a vendor patch is available; EPSS is modest at 0.57% (68th percentile), and there is no public evidence of active exploitation.
Arbitrary code execution in the NLTK Python library affects all versions through its data downloader, which calls zipfile.extractall() in the _unzip_iter function (nltk/downloader.py) without path validation. An attacker who controls the contents of a downloaded data package can plant Python files (e.g., __init__.py) that execute automatically when the package is imported, yielding remote code execution and full host compromise. Publicly available exploit code exists (huntr), though there is no public exploit identified as actively exploited; EPSS is moderate at 0.57% (68th percentile).
Arbitrary code execution through NLTK downloader component.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Know when Nltk gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Network-delivered malicious package with low complexity and total impact, but the victim must initiate the download/extract, so UI:R and PR:N rather than the vendor's PR:L/UI:N.
Primary rating from Vendor (huntr).
CVSS VectorVendor: huntr
Lifecycle Timeline
9DescriptionCVE.org
A critical vulnerability exists in the NLTK downloader component of nltk/nltk, affecting all versions. The _unzip_iter function in nltk/downloader.py uses zipfile.extractall() without performing path validation or security checks. This allows attackers to craft malicious zip packages that, when downloaded and extracted by NLTK, can execute arbitrary code. The vulnerability arises because NLTK assumes all downloaded packages are trusted and extracts them without validation. If a malicious package contains Python files, such as __init__.py, these files are executed automatically upon import, leading to remote code execution. This issue can result in full system compromise, including file system access, network access, and potential persistence mechanisms.
Executive ViewAI
NLTK (Natural Language Toolkit), a widely-deployed Python library for natural language processing, contains an arbitrary code execution vulnerability in its package downloader affecting all versions. Publicly available exploit code exists, creating immediate risk for organizations using NLTK to download data packages from non-vetted sources. Vendor patch deployment is critical to eliminate this attack vector from production environments.
Within 24 hours: Inventory all systems running NLTK; identify production deployments using automatic data downloads; disable auto-download features and restrict data sources to internal repositories only pending patch deployment. Within 7 days: Patch available per vendor advisory-apply to all affected NLTK installations and validate in staging environments first. Within 30 days: Complete production deployment of patched versions; implement and document strict data-source controls to prevent supply-chain compromise.
Apply vendor patch. For interim protection pending patch deployment: restrict NLTK data downloads to pre-vetted internal repositories, disable automatic package downloads, implement source verification controls, and maintain access logs for audit purposes.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Affected Products (CPE)CVE.org
Arbitrary code execution in the Natural Language Toolkit (NLTK) before 3.10.3 allows attackers to bypass the library's p
Arbitrary code execution in NLTK (Natural Language Toolkit) through 3.9.4 allows attackers to run Python code when a vic
StreamBackedCorpusView in NLTK before 3.10.0 allows arbitrary local file reads by calling Python's builtins.open() direc
Symlink-based path traversal in NLTK's FramenetCorpusReader before version 3.10.2 permits attackers with write access to
Unbounded recursion in NLTK's JSONTaggedDecoder.decode_obj() (nltk/jsontags.py) allows unauthenticated remote attackers
Path traversal and pickle deserialization protections in NLTK before 3.10.0 are effectively disabled by default - pathse
XML Entity Expansion (Billion Laughs) in NLTK before 3.10.3 allows unauthenticated remote attackers to cause denial of s
Server-side request forgery in NLTK before 3.10.3 allows unauthenticated remote attackers to reach internal HTTP service
Symlink escape in NLTK's CorpusReader.open() allows local attackers to read arbitrary files outside the designated corpu
Path traversal in NLTK's FramenetCorpusReader and NKJPCorpusReader (all versions before 3.10.0) enables unauthenticated
NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research a
nltk is vulnerable to Inefficient Regular Expression Complexity. Rated high severity (CVSS 7.5), this vulnerability is r
Same weakness CWE-94 – Code Injection
View allVendor StatusVendor
SUSE
| Product | Status |
|---|---|
| SUSE Package Hub 15 SP6 | Fixed |
| openSUSE Leap 15.6 | Fixed |
| openSUSE Tumbleweed | Fixed |
| SUSE Package Hub 15 SP6 | Fixed |
GHSA-7p94-766c-hgjp
NVD
CVE.org
EPSS
Exploit-DB