CVE-2022-24859
Last modified
CVE-2022-24859 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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. EPSS estimates a 1.28% chance of exploitation in the next 30 days.
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
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Pypdf2 Project | Pypdf2 | < 1.27.5 |
| Debian | Debian Linux | 9.0 |
References
- https://github.com/py-pdf/PyPDF2/issues/329Exploit, Third Party Advisory
- https://github.com/py-pdf/PyPDF2/pull/740Patch, Third Party Advisory
- https://github.com/py-pdf/PyPDF2/releases/tag/1.27.5Release Notes, Third Party Advisory
- https://github.com/py-pdf/PyPDF2/security/advisories/GHSA-xcjx-m2pj-8g79Exploit, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/06/msg00001.htmlMailing List, Third Party Advisory
- https://github.com/py-pdf/PyPDF2/issues/329Exploit, Third Party Advisory
- https://github.com/py-pdf/PyPDF2/pull/740Patch, Third Party Advisory
- https://github.com/py-pdf/PyPDF2/releases/tag/1.27.5Release Notes, Third Party Advisory
- https://github.com/py-pdf/PyPDF2/security/advisories/GHSA-xcjx-m2pj-8g79Exploit, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/06/msg00001.htmlMailing List, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-24859?
How severe is CVE-2022-24859?
How do I fix CVE-2022-24859?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2022
- CVE-2022-24853Metabase is an open source business intelligence and analyti…5.3
- CVE-2022-24854Metabase is an open source business intelligence and analyti…8.8
- CVE-2022-24855Metabase is an open source business intelligence and analyti…5.4
- CVE-2022-24856FlyteConsole is the web user interface for the Flyte platfor…7.5
- CVE-2022-24857django-mfa3 is a library that implements multi factor authen…8.8
- CVE-2022-24858next-auth v3 users before version 3.29.2 are impacted. next-…6.1
- CVE-2022-2486A vulnerability, which was classified as critical, was found…9.8
- CVE-2022-24860Databasir is a team-oriented relational database model docum…9.8
- CVE-2022-24861Databasir is a team-oriented relational database model docum…8.8
- CVE-2022-24862Databasir is a team-oriented relational database model docum…7.7
- CVE-2022-24863http-swagger is an open source wrapper to automatically gene…7.5
- CVE-2022-24864Origin Protocol is a blockchain based project. The Origin Pr…5.4
Are you affected by CVE-2022-24859?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
