CVE-2022-24859 – pypdf2
Package
Manager: pip
Name: pypdf2
Vulnerable Version: >=0 <1.27.5
Severity
Level: Medium
CVSS v3.1: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
EPSS: 0.00139 pctl0.34592
Details
Manipulated inline images can cause Infinite Loop in PyPDF2 ### Impact An attacker who uses this vulnerability can craft a PDF which leads to an infinite loop if the PyPDF2 user wrote the following code: ```python from PyPDF2 import PdfFileReader, PdfFileWriter from PyPDF2.pdf import ContentStream reader = PdfFileReader("malicious.pdf", strict=False) for page in reader.pages: ContentStream(page.getContents(), reader) ``` ### Patches [`PyPDF2==1.27.5`](https://pypi.org/project/PyPDF2) and later are patched. Credits to [Sebastian Krause](https://github.com/sekrause) for finding ([issue](https://github.com/py-pdf/PyPDF2/issues/329)) and fixing ([PR](https://github.com/py-pdf/PyPDF2/pull/740)) it.
Metadata
Created: 2022-04-22T20:54:41Z
Modified: 2024-10-14T16:49:22Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/04/GHSA-xcjx-m2pj-8g79/GHSA-xcjx-m2pj-8g79.json
CWE IDs: ["CWE-835"]
Alternative ID: GHSA-xcjx-m2pj-8g79
Finding: F138
Auto approve: 1