CVE-2022-24859: debian debian_linux Infinite Loop
Vulnerability summary
CVE-2022-24859 is a medium (CVSS 6.2) Infinite Loop vulnerability in debian debian_linux. EPSS estimates a 1.32% chance of exploitation in the next 30 days, higher than 70.3% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 18-04-2022PublishedVulnerability first disclosed.
- 22-04-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 5 sources · 3 versions- OSV · PypiEcosystem advisory · calculated6.2MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated6.2MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HDiffers
- NVDNIST5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HDiffers
EPSS trend
Probability
1.32%
Chance of exploitation in the next 30 days
Percentile
70%
Versus all other CVEs
30-day change
0.00 pp
From 1.32% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundPypdf2
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Debian2 products
- pypdf2< 1.26.0-2+deb9u1 | < 1.26.0-2+deb10u1 | < 1.27.9-1
- debian_linuxEOL9.0
Mageia1 product
- python-pypdf2< 1.27.5-1.mga8
Opensuse1 product
- python-PyPDF2&distro=openSUSE Leap 15.6< 1.26.0-bp156.4.3.1
Py-pdf1 product
- pypdf2< 1.27.5
Pypdf2_project1 product
- pypdf2< 1.27.5
PyPI1 product
- pypdf2< 1.27.5
Suse1 product
- python-PyPDF2&distro=SUSE Package Hub 15 SP6< 1.26.0-bp156.4.3.1
Ubuntu1 product
- pypdf2< 1.25.1-1ubuntu0.1~esm1 | < 1.26.0-2ubuntu0.1~esm1 | < 1.26.0-3ubuntu1.20.04.1 | < 1.26.0-4ubuntu0.22.04.1
8 vendors · 9 products
References
19 links- github.com/py-pdf/PyPDF2/security/advisories/GHSA-xcjx-m2pj-8g79WEBAdvisoryREPORTExploitThird Party Advisory
- lists.opensuse.org/archives/…Advisory
Show all 19 references
- github.com/py-pdf/PyPDF2PACKAGE