Skip to main content

Nltk CVE-2025-14009

HIGH
Code Injection (CWE-94)
2026-02-18 security@huntr.dev GHSA-7p94-766c-hgjp
8.8
CVSS 3.1 · Vendor: huntr
View

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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv5 – 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)
v4 Jun 30, 2026 - 05:42 cvss changed CVSS 8.8

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.

v3 Jun 30, 2026 - 05:41 cvss changed CVSS 8.8

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.

v2 Jun 30, 2026 - 05:41 cvss changed CVSS 8.8

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).

v1 Mar 12, 2026 - 21:55 CVSS 10.0

Arbitrary code execution through NLTK downloader component.

Affected Packages

pypi nltk fix: 3.9.3

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

Vendor (huntr) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 8.8 HIGH

Primary rating from Vendor (huntr).

CVSS VectorVendor: huntr

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

9
Analysis Updated
Jun 30, 2026 - 05:43 vuln.today
v5 - CVSS changed
Analysis Updated
Jun 30, 2026 - 05:42 vuln.today
v4 - CVSS changed
Analysis Updated
Jun 30, 2026 - 05:41 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 30, 2026 - 05:41 vuln.today
v2 - CVSS changed
Severity Changed
Jun 30, 2026 - 03:23 NVD
CRITICAL HIGH
CVSS changed
Jun 30, 2026 - 03:23 NVD
10.0 (CRITICAL) 8.8 (HIGH)
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
PoC Detected
Mar 06, 2026 - 21:23 vuln.today
Public exploit code
CVE Published
Feb 18, 2026 - 18:24 nvd
CRITICAL 10.0

DescriptionCVE.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

Why It Matters

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.

Recommended Action

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.6%
Top 32% exploitable
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

65
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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

cpe:2.3:a:nltk:nltk:*:*:*:*:*:*:*:*

More in Nltk

View all
CVE-2026-79657 CRITICAL POC
9.3 Aug 25

Arbitrary code execution in the Natural Language Toolkit (NLTK) before 3.10.3 allows attackers to bypass the library's p

CVE-2026-78683 CRITICAL POC
9.4 Aug 25

Arbitrary code execution in NLTK (Natural Language Toolkit) through 3.9.4 allows attackers to run Python code when a vic

CVE-2026-63312 HIGH POC
8.7 Aug 22

StreamBackedCorpusView in NLTK before 3.10.0 allows arbitrary local file reads by calling Python's builtins.open() direc

CVE-2026-62384 HIGH POC
8.7 Aug 22

Symlink-based path traversal in NLTK's FramenetCorpusReader before version 3.10.2 permits attackers with write access to

CVE-2026-66393 HIGH POC
8.7 Aug 22

Unbounded recursion in NLTK's JSONTaggedDecoder.decode_obj() (nltk/jsontags.py) allows unauthenticated remote attackers

CVE-2026-62388 HIGH POC
8.7 Aug 22

Path traversal and pickle deserialization protections in NLTK before 3.10.0 are effectively disabled by default - pathse

CVE-2026-78681 HIGH POC
8.7 Aug 25

XML Entity Expansion (Billion Laughs) in NLTK before 3.10.3 allows unauthenticated remote attackers to cause denial of s

CVE-2026-78682 HIGH POC
8.7 Aug 25

Server-side request forgery in NLTK before 3.10.3 allows unauthenticated remote attackers to reach internal HTTP service

CVE-2026-70626 HIGH POC
8.6 Aug 22

Symlink escape in NLTK's CorpusReader.open() allows local attackers to read arbitrary files outside the designated corpu

CVE-2026-62385 HIGH POC
8.2 Aug 22

Path traversal in NLTK's FramenetCorpusReader and NKJPCorpusReader (all versions before 3.10.0) enables unauthenticated

CVE-2021-43854 HIGH POC
7.5 Dec 23

NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research a

CVE-2021-3828 HIGH POC
7.5 Sep 27

nltk is vulnerable to Inefficient Regular Expression Complexity. Rated high severity (CVSS 7.5), this vulnerability is r

Vendor StatusVendor

SUSE

Product Status
SUSE Package Hub 15 SP6 Fixed
openSUSE Leap 15.6 Fixed
openSUSE Tumbleweed Fixed
SUSE Package Hub 15 SP6 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy