6.5

CVE-2023-36807: py-pdf pypdf Infinite Loop

CVSS: 6.5v3.1MediumModified
AliasesGHSA-hm9v-vj3r-r55mPYSEC-2026-1836UBUNTU-CVE-2023-36807
Published 30-06-2023Last modified 06-11-2024

Vulnerability summary

CVE-2023-36807 is a medium (CVSS 6.5) Infinite Loop vulnerability in py-pdf pypdf. EPSS estimates a 0.57% chance of exploitation in the next 30 days, higher than 46.5% of scored vulnerabilities. 1 public exploit is recorded.

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

Timeline

  1. 30-06-2023
    PublishedVulnerability first disclosed.
  2. 06-11-2024
    Last modifiedVulnerability information updated.

Description

pypdf is a pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. In version 2.10.5 an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This infinite loop blocks the current process and can utilize a single core of the CPU by 100%. It does not affect memory usage. That is, for example, the case if the user extracted metadata from such a malformed PDF. Versions prior to 2.10.5 throw an error, but do not hang forever. This issue was fixed with https://github.com/py-pdf/pypdf/pull/1331 which has been included in release 2.10.6. Users are advised to upgrade. Users unable to upgrade should modify `PyPDF2/generic/_data_structures.py::read_object` to an an error throwing case. See GHSA-hm9v-vj3r-r55m for details.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

0.57%

Chance of exploitation in the next 30 days

Percentile

47%

Versus all other CVEs

30-day change

0.00 pp

From 0.57% on 21-09-2026

21-09-202621-10-2026
EPSS score
0.57%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Pypdf

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Debian1 product
  • pypdf2< 2.10.7-1
Py-pdf1 product
Pypdf_project1 product
PyPI1 product
  • pypdf2≥ 2.10.5, < 2.10.6
Ubuntu1 product
  • pypdf2< 1.25.1-1 | < 1.25.1-1ubuntu0.1~esm2 | < 1.26.0-2 | < 1.26.0-2ubuntu0.1~esm2 | < 1.26.0-3ubuntu1.20.04.1 | < 1.26.0-4ubuntu0.22.04.1

5 vendors · 5 products

References

11 links
Show all 11 references