CVE-2022-24859
Summary
| CVE | CVE-2022-24859 |
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2022-04-18 19:15:00 UTC |
| Updated | 2023-06-10 01:15:00 UTC |
| 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. |
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|
| 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 |
No vendor comments have been submitted for this CVE.
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)