pferron / case142691-1

0 stars 0 forks source link

nltk-3.8.1-py3-none-any.whl: 2 vulnerabilities (highest severity is: 9.8) #3

Open mend-for-github-com[bot] opened 1 month ago

mend-for-github-com[bot] commented 1 month ago
Vulnerable Library - nltk-3.8.1-py3-none-any.whl

Natural Language Toolkit

Library home page: https://files.pythonhosted.org/packages/a6/0a/0d20d2c0f16be91b9fa32a77b76c60f9baf6eba419e5ef5deca17af9c582/nltk-3.8.1-py3-none-any.whl

Path to dependency file: /requirements.txt

Path to vulnerable library: /requirements.txt

Found in HEAD commit: 547f7753d5f0fe49d738fb20cbc9190f1eeb96a7

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (nltk version) Remediation Possible**
CVE-2024-39705 Critical 9.8 nltk-3.8.1-py3-none-any.whl Direct 3.8.2
CVE-2024-5569 Low 3.3 zipp-3.15.0-py3-none-any.whl Transitive 3.8.2

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2024-39705 ### Vulnerable Library - nltk-3.8.1-py3-none-any.whl

Natural Language Toolkit

Library home page: https://files.pythonhosted.org/packages/a6/0a/0d20d2c0f16be91b9fa32a77b76c60f9baf6eba419e5ef5deca17af9c582/nltk-3.8.1-py3-none-any.whl

Path to dependency file: /requirements.txt

Path to vulnerable library: /requirements.txt

Dependency Hierarchy: - :x: **nltk-3.8.1-py3-none-any.whl** (Vulnerable Library)

Found in HEAD commit: 547f7753d5f0fe49d738fb20cbc9190f1eeb96a7

Found in base branch: main

### Vulnerability Details

NLTK through 3.8.1 allows remote code execution if untrusted packages have pickled Python code, and the integrated data package download functionality is used. This affects, for example, averaged_perceptron_tagger and punkt.

Publish Date: 2024-06-27

URL: CVE-2024-39705

### CVSS 3 Score Details (9.8)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: High - Availability Impact: High

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Release Date: 2024-06-27

Fix Resolution: 3.8.2

:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.
CVE-2024-5569 ### Vulnerable Library - zipp-3.15.0-py3-none-any.whl

Backport of pathlib-compatible object wrapper for zip files

Library home page: https://files.pythonhosted.org/packages/5b/fa/c9e82bbe1af6266adf08afb563905eb87cab83fde00a0a08963510621047/zipp-3.15.0-py3-none-any.whl

Path to dependency file: /requirements.txt

Path to vulnerable library: /requirements.txt

Dependency Hierarchy: - nltk-3.8.1-py3-none-any.whl (Root Library) - click-8.1.7-py3-none-any.whl - importlib_metadata-6.7.0-py3-none-any.whl - :x: **zipp-3.15.0-py3-none-any.whl** (Vulnerable Library)

Found in HEAD commit: 547f7753d5f0fe49d738fb20cbc9190f1eeb96a7

Found in base branch: main

### Vulnerability Details

A Denial of Service (DoS) vulnerability exists in the jaraco/zipp library, affecting all versions prior to 3.19.1. The vulnerability is triggered when processing a specially crafted zip file that leads to an infinite loop. This issue also impacts the zipfile module of CPython, as features from the third-party zipp library are later merged into CPython, and the affected code is identical in both projects. The infinite loop can be initiated through the use of functions affecting the `Path` module in both zipp and zipfile, such as `joinpath`, the overloaded division operator, and `iterdir`. Although the infinite loop is not resource exhaustive, it prevents the application from responding. The vulnerability was addressed in version 3.19.1 of jaraco/zipp.

Publish Date: 2024-07-09

URL: CVE-2024-5569

### CVSS 3 Score Details (3.3)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Local - Attack Complexity: Low - Privileges Required: Low - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: Low

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://huntr.com/bounties/be898306-11f9-46b4-b28c-f4c4aa4ffbae

Release Date: 2024-07-09

Fix Resolution (zipp): 3.19.1

Direct dependency fix Resolution (nltk): 3.8.2

:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.

:rescue_worker_helmet:Automatic Remediation will be attempted for this issue.