CVE-2025-14009
nltk: Zip Slip Vulnerability in nltk Leading to Code Execution
Overview
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.
Source: OX vulnerability database
Severity
8.8 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-94
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| PyPI | nltk | <3.9.3 | 3.9.3 |
Open a package to see all its vulnerabilities.
Operating systems · 22 fixes
alpine 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.24 | py3-nltk | 3.9.3-r0 |
| edge | py3-nltk | 3.9.3-r0 |
chainguard 1 release · 6 packages
| Release | Package | Fixed in |
|---|---|---|
| open-webui | 0.8.9-r0 | |
| label-studio | 1.22.0-r6 | |
| kubeflow-pipelines-visualization-server | 2.16.0-r0 | |
| nemo | 2.6.2-r3 | |
| apache-beam-python-3-11-sdk | 2.71.0-r5 | |
| py3-nltk | 3.9.3-r0 |
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | nltk | affected |
| 12 | nltk | affected |
| 13 | nltk | affected |
| 14 | nltk | 3.9.3-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| nltk | affected |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | python311-nltk +2 | 3.9.1-3.1 | openSUSE-SU-2026:10226-1 |
ubuntu 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | nltk | 3.2.5-1ubuntu0.1+esm3 |
| 20.04-ESM | nltk | 3.4.5-2ubuntu0.1~esm3 |
| 22.04 | nltk | affected |
| 24.04 | nltk | affected |
| 26.04 | nltk | affected |
wolfi 1 release · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| open-webui | 0.8.9-r0 | |
| kubeflow-pipelines-visualization-server | 2.16.0-r0 | |
| py3-nltk | 3.9.3-r0 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:10184
- access.redhat.com https://access.redhat.com/security/cve/CVE-2025-14009
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2440724
- github.com https://github.com/nltk/nltk
- github.com https://github.com/nltk/nltk/blob/4154eb85e832f266660a09286c7e37e308292284/ChangeLog#L1
- github.com https://github.com/nltk/nltk/commit/1056b323af6462455571302e766b67cf300aea18
- github.com https://github.com/nltk/nltk/issues/3489
- github.com https://github.com/nltk/nltk/pull/3468
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-96.yaml
- huntr.com https://huntr.com/bounties/49ecbc02-054e-4470-b2e0-b267936cc4e4
Show all 14 references
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.