CVE-2025-14009
Fixed in a distro release EPSS 1%CVSS 10.0
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.
Products: nltk/nltk, Red Hat OpenShift AI 2.25, Red Hat OpenShift Lightspeed, Red Hat OpenShift AI (RHOAI)
Fixed upstream
| Ecosystem | Package | Fixed in |
|---|---|---|
| PyPI | nltk | 3.9.3 |
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Chainguard | apache-beam-python-3.11-sdk | 2.71.0-r5 |
| Chainguard | kubeflow-pipelines-visualization-server | 2.16.0-r0 |
| Chainguard | label-studio | 1.22.0-r6 |
| Chainguard | nemo | 2.6.2-r3 |
| Chainguard | open-webui | 0.8.9-r0 |
| Chainguard | py3.11-nltk | 3.9.3-r0 |
| Chainguard | py3.12-nltk | 3.9.3-r0 |
| Chainguard | py3.13-nltk | 3.9.3-r0 |
| Debian 12 | nltk | no fix |
| Debian 13 | nltk | no fix |
| Debian 14 | nltk | 3.9.3-1 |
| Ubuntu 25.10 | nltk | no fix |
| Ubuntu 26.10 | nltk | no fix |
| Ubuntu Pro 14.04 LTS | nltk | 2.0~b9-0ubuntu4.1~esm5 |
| Ubuntu Pro 16.04 LTS | nltk | 3.1-1ubuntu0.1+esm3 |
| Ubuntu Pro 18.04 LTS | nltk | 3.2.5-1ubuntu0.1+esm3 |
| Ubuntu Pro 20.04 LTS | nltk | 3.4.5-2ubuntu0.1~esm3 |
| Ubuntu Pro 22.04 LTS | nltk | 3.7-1ubuntu0.1~esm1 |
| Ubuntu Pro 24.04 LTS | nltk | 3.8.1-1ubuntu0.1~esm1 |
| Ubuntu Pro 26.04 LTS | nltk | 3.9.2-1ubuntu0.1~esm1 |
| Wolfi | kubeflow-pipelines-visualization-server | 2.16.0-r0 |
| Wolfi | open-webui | 0.8.9-r0 |
| Wolfi | py3.11-nltk | 3.9.3-r0 |
| Wolfi | py3.12-nltk | 3.9.3-r0 |
| Wolfi | py3.13-nltk | 3.9.3-r0 |
| openSUSE Tumbleweed | python-nltk | 3.9.1-3.1 |