Zip Slip Vulnerability in nltk/nltk Leading to Remote Code Execution
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| nltk | nltk/nltk | affected |
|
No data.
| Vendor | Product | Versions |
|---|---|---|
| Nltk | Nltk | — |
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-7p94-766c-hgjp | NLTK has a Zip Slip Vulnerability |
Ubuntu USN |
USN-8214-1 | NLTK vulnerability |
No CVSS v4.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: 1.0% (1.036% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:2.3:a:nltk:nltk:*:*:*:*:*:*:*:* |
| Type | Values Removed | Values Added |
|---|---|---|
| References |
| |
| Metrics |
threat_severity
|
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Nltk
Nltk nltk |
|
| Vendors & Products |
Nltk
Nltk nltk |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | Zip Slip Vulnerability in nltk/nltk Leading to Remote Code Execution | |
| Weaknesses | CWE-94 | |
| References |
| |
| Metrics |
cvssV3_0
|