Infinite loop in PyPDF - CVE-2022-24859

 

Infinite loop in PyPDF - CVE-2022-24859

Published: June 19, 2023 / Updated: April 10, 2026


Vulnerability identifier: #VU77514
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2022-24859
CWE-ID: CWE-835
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Pypdf Project
Affected software:
PyPDF

Detailed vulnerability description

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to infinite loop in ContentStream._readInlineImage. A remote attacker can pass a specially crafted PDF file to the application, consume all available system resources and cause denial of service conditions.


How to mitigate CVE-2022-24859

Install updates from vendor's website.

Sources