NirShaharabani / python-mini-projects

A collection of simple python mini projects to enhance your python skills
https://python-world.github.io/python-mini-projects/#/
MIT License
0 stars 0 forks source link

PyPDF2-2.5.0-py3-none-any.whl: 1 vulnerabilities (highest severity is: 6.2) #51

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

mend-for-github-com[bot] commented 1 year ago
Vulnerable Library - PyPDF2-2.5.0-py3-none-any.whl

A pure-python PDF library capable of splitting, merging, cropping, and transforming PDF files

Library home page: https://files.pythonhosted.org/packages/b2/54/14f9ce3287c995e290206c1a75287aa308e961109fe6a3fb2a91b01a67e3/PyPDF2-2.5.0-py3-none-any.whl

Path to dependency file: /projects/PDF to MP3/requirements.txt

Path to vulnerable library: /projects/PDF to MP3/requirements.txt

Found in HEAD commit: bf2f317cb6b371fa8ba87f3a9f45a7dde720c061

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (PyPDF2 version) Remediation Possible**
CVE-2023-36464 Medium 6.2 PyPDF2-2.5.0-py3-none-any.whl Direct pypdf - 3.9.0

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

Details

CVE-2023-36464 ### Vulnerable Library - PyPDF2-2.5.0-py3-none-any.whl

A pure-python PDF library capable of splitting, merging, cropping, and transforming PDF files

Library home page: https://files.pythonhosted.org/packages/b2/54/14f9ce3287c995e290206c1a75287aa308e961109fe6a3fb2a91b01a67e3/PyPDF2-2.5.0-py3-none-any.whl

Path to dependency file: /projects/PDF to MP3/requirements.txt

Path to vulnerable library: /projects/PDF to MP3/requirements.txt

Dependency Hierarchy: - :x: **PyPDF2-2.5.0-py3-none-any.whl** (Vulnerable Library)

Found in HEAD commit: bf2f317cb6b371fa8ba87f3a9f45a7dde720c061

Found in base branch: master

### Vulnerability Details

pypdf is an open source, pure-python PDF library. In affected versions an attacker may craft a PDF which leads to an infinite loop if `__parse_content_stream` is executed. That is, for example, the case if the user extracted text from such a PDF. This issue was introduced in pull request #969 and resolved in pull request #1828. Users are advised to upgrade. Users unable to upgrade may modify the line `while peek not in (b"\r", b"\n")` in `pypdf/generic/_data_structures.py` to `while peek not in (b"\r", b"\n", b"")`.

Publish Date: 2023-06-27

URL: CVE-2023-36464

### CVSS 3 Score Details (6.2)

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

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://github.com/py-pdf/pypdf/security/advisories/GHSA-4vvm-4w3v-6mr8

Release Date: 2023-06-27

Fix Resolution: pypdf - 3.9.0

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

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