5.5
CVSSv3

CVE-2022-24859

Published: 18/04/2022 Updated: 10/06/2023
CVSS v2 Base Score: 4.3 | Impact Score: 2.9 | Exploitability Score: 8.6
CVSS v3 Base Score: 5.5 | Impact Score: 3.6 | Exploitability Score: 1.8
VMScore: 383
Vector: AV:N/AC:M/Au:N/C:N/I:N/A:P

Vulnerability Summary

PyPDF2 is an open source python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. In versions before 1.27.5 an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop if the PyPDF2 if the code attempts to get the content stream. The reason is that the last while-loop in `ContentStream._readInlineImage` only terminates when it finds the `EI` token, but never actually checks if the stream has already ended. This issue has been resolved in version `1.27.5`. Users unable to upgrade should validate and PDFs prior to iterating over their content stream.

Vulnerability Trend

Vulnerable Product Search on Vulmon Subscribe to Product

pypdf2 project pypdf2

debian debian linux 9.0

Vendor Advisories

Debian Bug report logs - #1009879 pypdf2: CVE-2022-24859: Manipulated inline images can cause Infinite Loop Package: src:pypdf2; Maintainer for src:pypdf2 is Laszlo Boszormenyi (GCS) <gcs@debianorg>; Reported by: Salvatore Bonaccorso <carnil@debianorg> Date: Tue, 19 Apr 2022 19:18:21 UTC Severity: important Tags: s ...
PyPDF2 is an open source python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files In versions prior to 1275 an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop if the PyPDF2 if the code attempts to get the content stream The reason is that the last while-loop in `Con ...