CVE-2022-24859
CVE-2022-24859 — Manipulated inline images can cause Infinite Loop in PyPDF2
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.
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
1%
chance of exploitation in 30 days
CVSS base
6.2
MEDIUM
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
PoC
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Partial
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 6.2 | CVSS 3.1 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-835
References
6 on the record
- github.com/py-pdf/PyPDF2/security/advisories/GHSA-xcjx-m2pj-8g79
reference
- github.com/py-pdf/PyPDF2/issues/329
reference
- github.com/py-pdf/PyPDF2/pull/740
reference
- github.com/py-pdf/PyPDF2/releases/tag/1.27.5
reference
- lists.debian.org/debian-lts-announce/2022/06/msg00001.html
mailing-list
- lists.debian.org/debian-lts-announce/2023/06/msg00013.html
mailing-list
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2024-20353 Cisco ASA and FTD Denial of Service VulnerabilityCVSS 8.6 · CISA KEV
- CVE-2026-65156 NVIDIA CUDA Video Codec SDK for Jetson Linux contains a vulnerability where an attacker may cause an infinite loopCVSS 7.5
- CVE-2026-65155 NVIDIA CUDA Video Codec SDK (CUVID) for Jetson Linux contains a vulnerability where an attacker may cause a loop with an unreachable exit…CVSS 7.5
- CVE-2026-6554 infinte loop in libpcap before 1.10.7CVSS 5.5
- CVE-2026-11932 Security vulnerabilities have been found in IBM Verify Identity Access and IBM Security Verify AccessCVSS 5.3
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.