CVE-2025-14009
published critical CVSS 3.0 · 10.0Zip Slip Vulnerability in nltk/nltk Leading to Remote Code Execution
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| nltk | — | nltk/nltkunspecified through latest | Affected | Not stated | @huntr_ai |
| Red Hat | — | rhoai/odh-llama-stack-core-rhel9Red Hat OpenShift AI 2.25 · 1775144403 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | rhoai/odh-ta-lmes-job-rhel9Red Hat OpenShift AI 2.25 · 1776271296 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | openshift-lightspeed/lightspeed-ocp-rag-rhel9OpenShift Lightspeed | Affected | Not stated | redhat-SADP |
| Alpine Linux | edge | py3-nltk | Fixed | 3.9.3-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-nltkaarch64 | Advisory build | 3.9.1-3.1 | OPENSUSE-SU-2026:10226-1 |
| Ubuntu | bionic | nltk | Advisory build | 3.2.5-1ubuntu0.1+esm3 | USN-8214-1 |
| Alpine Linux | v3.24 | py3-nltk | Fixed | 3.9.3-r0 | Package fix record |
Show 30 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat | — | openshift-lightspeed/lightspeed-service-api-rhel9OpenShift Lightspeed | Affected | Not stated | redhat-SADP |
| Red Hat | — | openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9OpenShift Lightspeed | Affected | Not stated | redhat-SADP |
| Red Hat | — | rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9Red Hat OpenShift AI (RHOAI) | Affected | Not stated | redhat-SADP |
| Red Hat | — | rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9Red Hat OpenShift AI (RHOAI) | Affected | Not stated | redhat-SADP |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-nltkppc64le | Advisory build | 3.9.1-3.1 | OPENSUSE-SU-2026:10226-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-nltks390x | Advisory build | 3.9.1-3.1 | OPENSUSE-SU-2026:10226-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-nltkx86_64 | Advisory build | 3.9.1-3.1 | OPENSUSE-SU-2026:10226-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-nltkaarch64 | Advisory build | 3.9.1-3.1 | OPENSUSE-SU-2026:10226-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-nltkppc64le | Advisory build | 3.9.1-3.1 | OPENSUSE-SU-2026:10226-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-nltks390x | Advisory build | 3.9.1-3.1 | OPENSUSE-SU-2026:10226-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-nltkx86_64 | Advisory build | 3.9.1-3.1 | OPENSUSE-SU-2026:10226-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-nltkaarch64 | Advisory build | 3.9.1-3.1 | OPENSUSE-SU-2026:10226-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-nltkppc64le | Advisory build | 3.9.1-3.1 | OPENSUSE-SU-2026:10226-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-nltks390x | Advisory build | 3.9.1-3.1 | OPENSUSE-SU-2026:10226-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-nltkx86_64 | Advisory build | 3.9.1-3.1 | OPENSUSE-SU-2026:10226-1 |
| Ubuntu | bionic | python-nltk | Advisory build | 3.2.5-1ubuntu0.1+esm3 | USN-8214-1 |
| Ubuntu | bionic | python3-nltk | Advisory build | 3.2.5-1ubuntu0.1+esm3 | USN-8214-1 |
| Ubuntu | focal | nltk | Advisory build | 3.4.5-2ubuntu0.1~esm3 | USN-8214-1 |
| Ubuntu | focal | python3-nltk | Advisory build | 3.4.5-2ubuntu0.1~esm3 | USN-8214-1 |
| Ubuntu | jammy | nltk | Advisory build | 3.7-1ubuntu0.1~esm1 | USN-8214-1 |
| Ubuntu | jammy | python3-nltk | Advisory build | 3.7-1ubuntu0.1~esm1 | USN-8214-1 |
| Ubuntu | noble | nltk | Advisory build | 3.8.1-1ubuntu0.1~esm1 | USN-8214-1 |
| Ubuntu | noble | python3-nltk | Advisory build | 3.8.1-1ubuntu0.1~esm1 | USN-8214-1 |
| Ubuntu | resolute | nltk | Advisory build | 3.9.2-1ubuntu0.1~esm1 | USN-8214-1 |
| Ubuntu | resolute | python3-nltk | Advisory build | 3.9.2-1ubuntu0.1~esm1 | USN-8214-1 |
| Ubuntu | trusty | nltk | Advisory build | 2.0~b9-0ubuntu4.1~esm5 | USN-8214-1 |
| Ubuntu | trusty | python-nltk | Advisory build | 2.0~b9-0ubuntu4.1~esm5 | USN-8214-1 |
| Ubuntu | xenial | nltk | Advisory build | 3.1-1ubuntu0.1+esm3 | USN-8214-1 |
| Ubuntu | xenial | python-nltk | Advisory build | 3.1-1ubuntu0.1+esm3 | USN-8214-1 |
| Ubuntu | xenial | python3-nltk | Advisory build | 3.1-1ubuntu0.1+esm3 | USN-8214-1 |
Description
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.
A code execution vector has been discovered in the python NTLK library. 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 code execution.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 10.0 / 10
- Severity
- critical
- Provider
- @huntr_ai · cna
- Vector string
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.8 | high | redhat-SADP · adp | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| nltk | nltk/nltk | unspecified through latest (affected · custom) | @huntr_ai · cna |
| Red Hat | Red Hat OpenShift AI 2.25 | 1775144403 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI 2.25 | 1776271296 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | OpenShift Lightspeed | Default: affected | redhat-SADP · adp |
| Red Hat | OpenShift Lightspeed | Default: affected | redhat-SADP · adp |
| Red Hat | OpenShift Lightspeed | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI (RHOAI) | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI (RHOAI) | Default: affected | redhat-SADP · adp |
Weaknesses
2- CWE-94 CWE-94 Improper Control of Generation of Code
- CWE-94 Improper Control of Generation of Code ('Code Injection')
References
5- https://access.redhat.com/errata/RHSA-2026:10184
- https://access.redhat.com/security/cve/CVE-2025-14009
- RHBZ#2440724 https://bugzilla.redhat.com/show_bug.cgi?id=2440724
- https://huntr.com/bounties/49ecbc02-054e-4470-b2e0-b267936cc4e4
- https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-14009.json
Provider assertions
3@huntr_ai · cna
Zip Slip Vulnerability in nltk/nltk Leading to Remote Code Execution
redhat-SADP · adp
nltk: Zip Slip Vulnerability in nltk Leading to Code Execution
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d5a0b462a6e906fb8afe996238279781ce83f0de111f729a90a6c5c05b03aa59
- Ingested
- 23 Sep 2026, 08:37:27 UTC
- Source record
- Official CVE record