5.5

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

CVSS: 5.5v3.1MediumModified
AliasesGHSA-wjcc-cq79-p63fPYSEC-2026-1834UBUNTU-CVE-2023-46250
Published 31-10-2023Last modified 05-09-2024

Vulnerability summary

CVE-2023-46250 is a medium (CVSS 5.5) Infinite Loop vulnerability in py-pdf pypdf. EPSS estimates a 0.24% chance of exploitation in the next 30 days, higher than 14.5% of scored vulnerabilities.

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

Timeline

  1. 31-10-2023
    PublishedVulnerability first disclosed.
  2. 05-09-2024
    Last modifiedVulnerability information updated.

Description

pypdf is a free and open-source pure-python PDF library. An attacker who uses a vulnerability present in versions 3.7.0 through 3.16.4 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 when the pypdf-user manipulates an incoming malicious PDF e.g. by merging it with another PDF or by adding annotations. The issue was fixed in version 3.17.0. As a workaround, apply the patch manually by modifying `pypdf/generic/_data_structures.py`.

CVSS metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

0.24%

Chance of exploitation in the next 30 days

Percentile

15%

Versus all other CVEs

30-day change

0.00 pp

From 0.24% on 20-09-2026

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

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Ubuntu2 products
  • pypdfAll versions (No fix recorded)
  • pypdf2All versions (No fix recorded)
Py-pdf1 product
Pypdf_project1 product
PyPI1 product
  • pypdf≥ 3.7.0, < 3.17.0

4 vendors · 5 products

References

9 links