Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2022-24859 Details

Description

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.

Metrics

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

Weakness Enumeration

CWE-IDCWE NameSource
CWE-835Loop with Unreachable Exit Condition ('Infinite Loop')[email protected]
CWE-835Loop with Unreachable Exit Condition ('Infinite Loop')[email protected]

Affected Products

ProductVersions
pypdf2 project pypdf2
< 1.27.5

CPE

  • cpe:2.3:a:pypdf2_project:pypdf2:*:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.
debian debian linux
9.0

CPE

  • cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.

Change History

8 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2022-24859
NVD Published Date:
Apr 18, 2022
NVD Last Modified:
Jun 17, 2026
Source:
[email protected]
CVE-2022-24859 Details - Not Deferred