Paper/Archive/CVE-2025-14009

CVE-2025-14009

nltk nltk/nltk — Zip Slip Vulnerability in nltk/nltk Leading to Remote Code Execution

Description · from the CVE record

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.

Affected

ProductAffectedFixed inSource
nltk/nltkunspecified – latest–CNA
Red Hat OpenShift AI 2.25see advisory1775144403redhat-SADP
Red Hat OpenShift AI 2.25see advisory1776271296redhat-SADP
OpenShift Lightspeedsee advisory–redhat-SADP
OpenShift Lightspeedsee advisory–redhat-SADP
OpenShift Lightspeedsee advisory–redhat-SADP
Red Hat OpenShift AI (RHOAI)see advisory–redhat-SADP
Red Hat OpenShift AI (RHOAI)see advisory–redhat-SADP

Scores by source

@huntr_ai (CNA)10.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
redhat-SADP (CNA)8.8CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CISA ADPSSVCExploitation: poc · Automatable: yes · Technical impact: total

References

exploithuntr.com/bounties/49ecbc02-054e-4470-b2e0-b267936cc4e4refaccess.redhat.com/security/cve/CVE-2025-14009refbugzilla.redhat.com/show_bug.cgi?id=2440724refsecurity.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-14009.jsonadvisoryaccess.redhat.com/errata/RHSA-2026:10184