CVE-2025-14009

EUVD-2025-207820
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.
Code Injection
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
8.8 HIGH
NETWORK
LOW
LOW
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 53.49%
Affected Products (NVD)
VendorProductVersion
nltknltk
𝑥
< 3.9.3
𝑥
= Vulnerable software versions
Early Detection
Affected products identified ahead of NVD analysis through intelligence sources.
VendorProductVersionSource
Red HatRed Hat OpenShift AI 2.25
1775144403 ≤
𝑥
< *
ADP
Red HatRed Hat OpenShift AI 2.25
1776271296 ≤
𝑥
< *
ADP
Debian logo
Debian Releases
Debian Product
Codename
nltk
bookworm
no-dsa
bullseye
postponed
forky
3.10.1-1
fixed
sid
3.10.3-1
fixed
trixie
no-dsa
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
nltk
bionic
Fixed 3.2.5-1ubuntu0.1+esm3
released
focal
Fixed 3.4.5-2ubuntu0.1~esm3
released
jammy
Fixed 3.7-1ubuntu0.1~esm1
released
noble
Fixed 3.8.1-1ubuntu0.1~esm1
released
questing
ignored
resolute
Fixed 3.9.2-1ubuntu0.1~esm1
released
trusty
Fixed 2.0~b9-0ubuntu4.1~esm5
released
xenial
Fixed 3.1-1ubuntu0.1+esm3
released