Описание
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.
| Релиз | Статус | Примечание |
|---|---|---|
| devel | needed | |
| esm-apps-legacy/xenial | released | 3.1-1ubuntu0.1+esm3 |
| esm-apps/bionic | released | 3.2.5-1ubuntu0.1+esm3 |
| esm-apps/focal | released | 3.4.5-2ubuntu0.1~esm3 |
| esm-apps/jammy | released | 3.7-1ubuntu0.1~esm1 |
| esm-apps/noble | released | 3.8.1-1ubuntu0.1~esm1 |
| esm-apps/resolute | released | 3.9.2-1ubuntu0.1~esm1 |
| esm-apps/xenial | released | 3.1-1ubuntu0.1+esm3 |
| esm-infra-legacy/trusty | released | 2.0~b9-0ubuntu4.1~esm5 |
| jammy | needed |
Показывать по
8.8 High
CVSS3
Связанные уязвимости
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.
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.
A critical vulnerability exists in the NLTK downloader component of nl ...
Уязвимость функции _unzip_iter() пакета библиотек для символьной и статистической обработки естественного языка NLTK, позволяющая нарушителю выполнить произвольный код
8.8 High
CVSS3