VDB

CVE-2022-24859

CVE-2022-24859 PUBLISHED CVSS 6.199999809265137 MEDIUM

PyPDF2 is an open source python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. In versions prior to 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.

EPSS 0.13% · 31.5th percentile

Risk Scores

CVSS 3.1
6.199999809265137
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS Score
0.13%
31.5th percentile

Affected Products

VendorProductVersions
debiandebian_linux9.0
pypdf2_projectpypdf20
PyPIPyPDF20
py-pdfPyPDF2< 1.27.5

Timeline

  • Apr 18, 2022 CVE Published
  • Apr 19, 2022 EPSS Score
  • Jun 8, 2022 EPSS Score
  • Jul 29, 2022 EPSS Score
  • Sep 17, 2022 EPSS Score
  • Nov 6, 2022 EPSS Score
  • Dec 26, 2022 EPSS Score
  • Feb 14, 2023 EPSS Score
  • Mar 7, 2023 EPSS Score
  • Apr 5, 2023 EPSS Score
  • May 25, 2023 EPSS Score
  • Jul 14, 2023 EPSS Score
Open in Interactive Console →
$ Console Community · 100/wk Open console ›