6.2

CVE-2022-24859: debian debian_linux Infinite Loop

CVSS: 6.2v3.1MediumModified
AliasesMGASA-2022-0224openSUSE-SU-2024:0366-1GHSA-xcjx-m2pj-8g79
Published 18-04-2022Last modified 22-04-2025

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.

Overall risk
35/100
0100
Medium · default modelHow is this calculated?
CVSS score
6.2/10
010
Medium · v3.1 (CVE.org)
EPSS score
1.32%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Timeline

  1. 18-04-2022
    PublishedVulnerability first disclosed.
  2. 22-04-2025
    Last 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

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

20-09-202620-10-2026
EPSS score
1.32%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Pypdf2

    Maturity: poc

Weaknesses

CWE · root cause

Affected 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_project1 product
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
Show all 19 references