cve.bz

CVE-2025-14009 nltk nltk: Code Injection

8.8 highExploit referenceEPSS 1.0%Fix available

High (8.8) in nltk nltk. EPSS 1.0% estimated probability of exploitation activity in the next 30 days. Fixed in nltk 3.9.3.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
1.0% (unchanged from 1.0% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 64th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: total, assessed 2026-02-19. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-14009 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-14009?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-14009?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-14009 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
nltk/nltkthrough latest

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-7p94-766c-hgjpPyPInltk<3.9.33.9.3
PYSEC-2026-96PyPInltk<3.9.33.9.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13nltkno fix listedDEBIAN-CVE-2025-14009
Debian14nltk3.9.3-1DEBIAN-CVE-2025-14009
Ubuntu25.10, 26.10nltkno fix listedUBUNTU-CVE-2025-14009
UbuntuPro:14.04:LTSnltk2.0~b9-0ubuntu4.1~esm5UBUNTU-CVE-2025-14009
UbuntuPro:16.04:LTSnltk3.1-1ubuntu0.1+esm3UBUNTU-CVE-2025-14009
UbuntuPro:18.04:LTSnltk3.2.5-1ubuntu0.1+esm3UBUNTU-CVE-2025-14009
UbuntuPro:20.04:LTSnltk3.4.5-2ubuntu0.1~esm3UBUNTU-CVE-2025-14009
UbuntuPro:22.04:LTSnltk3.7-1ubuntu0.1~esm1UBUNTU-CVE-2025-14009
UbuntuPro:24.04:LTSnltk3.8.1-1ubuntu0.1~esm1UBUNTU-CVE-2025-14009
UbuntuPro:26.04:LTSnltk3.9.2-1ubuntu0.1~esm1UBUNTU-CVE-2025-14009
openSUSETumbleweedpython-nltk3.9.1-3.1openSUSE-SU-2026:10226-1
Alpinev3.24py3-nltk3.9.3-r0ALPINE-CVE-2025-14009

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

The risk of this flaw to Red Hat products is mitigated by the default requirement that users authenticate before interacting with a system. This reduces the impact to Important. Red Hat products utilizing NLTK are only affected if they are configured to process untrustsed zip archives.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat OpenShift AI 2.25rhoai/odh-llama-stack-core-rhel9:1775144403Fixed 2026-04-23RHSA-2026:10184
Red Hat OpenShift AI 2.25rhoai/odh-ta-lmes-job-rhel9:1776271296Fixed 2026-04-23RHSA-2026:10184
OpenShift Lightspeedopenshift-lightspeed/lightspeed-ocp-rag-rhel9Affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-service-api-rhel9Affected
OpenShift Lightspeedopenshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9Affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-14009.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON