CVE-2022-24859

Summary

CVECVE-2022-24859
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-04-18 19:15:00 UTC
Updated2023-06-10 01:15:00 UTC
DescriptionPyPDF2 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.

Risk And Classification

Problem Types: CWE-835

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Debian Debian Linux 9.0 All All All
Application Pypdf2 Project Pypdf2 All All All All

References

ReferenceSourceLinkTags
Release Version 1.27.5, 2022-04-15 · py-pdf/PyPDF2 · GitHub MISC github.com
[SECURITY] [DLA 3451-1] pypdf2 security update MLIST lists.debian.org
Manipulated inline images can force PyPDF2 into an infinite loop · Issue #329 · py-pdf/PyPDF2 · GitHub MISC github.com
Improved performance and security for ContentStream_readInlineImage. by sekrause · Pull Request #740 · py-pdf/PyPDF2 · GitHub MISC github.com
[SECURITY] [DLA 3039-1] pypdf2 security update MLIST lists.debian.org
Manipulated inline images can cause Infinite Loop · Advisory · py-pdf/PyPDF2 · GitHub CONFIRM github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 179353 Debian Security Update for pypdf2 (DLA 3039-1)
  • 181838 Debian Security Update for pypdf2 (DLA 3451-1)
  • 183839 Debian Security Update for pypdf2 (CVE-2022-24859)
  • 199426 Ubuntu Security Notification for PyPDF2 Vulnerability (USN-6176-1)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report