CVE-2026-115580

pypdf: Possible long runtimes for large xref table header limits

Published Oct 23, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
Description
pypdf is a free and open-source pure-python PDF library. Prior to 6.21.2, an attacker can craft a PDF with a standard cross-reference table whose declared entry count exceeds what the file can contain, causing excessive processing and long runtimes when the file is opened. This issue is fixed in version 6.21.2.

Analysis

AI-generated

Technical impact

The vulnerability lies in the parsing of PDF cross‑reference (xref) tables and is classified as CWE‑834 and CWE‑606. An attacker can craft a PDF whose declared xref entry count exceeds the number of entries actually present. When pypdf processes such a file, it performs excessive checks and loops, leading to very long runtimes. The result is a denial‑of‑service condition for any application that parses the file, as the process may hang or consume excessive CPU resources.

Affected Systems

The vulnerability affects the pypdf library maintained by py‑pdf. Versions older than 6.21.2 are impacted; the fix is included in release 6.21.2 onward.

Risk and Exploitability

The CVSS score of 7.1 indicates a high severity, while the EPSS score is not available, so the probability of exploitation is unknown. The issue is not listed in CISA's KEV catalog. Attackers could exploit this by delivering a malicious PDF file to any application that imports and parses PDFs using the affected version of pypdf. If the application processes the file in a user‑directed context, the attacker can cause the application to become unresponsive or consume excessive CPU, potentially leading to service degradation or denial of service. Based on the description, the likely attack vector is local file processing or a network channel where the PDF is received and parsed by a service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade pypdf to version 6.21.2 or newer, which resolves the CWE‑834 and CWE‑606 vulnerabilities.
  • If an immediate upgrade is not possible, restrict parsing to trusted PDF sources or validate file size before passing to pypdf.
  • Implement a processing timeout or resource limits in the application to guard against excessive CPU consumption during PDF parsing.

Generated by OpenCVE AI on October 24, 2026 at 01:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-gmh7-3g9r-mjh5 pypdf: Possible long runtimes for large xref table header limits
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-606
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Py-pdf
Py-pdf pypdf
Vendors & Products Py-pdf
Py-pdf pypdf
Type Values Removed Values Added
Description pypdf is a free and open-source pure-python PDF library. Prior to 6.21.2, an attacker can craft a PDF with a standard cross-reference table whose declared entry count exceeds what the file can contain, causing excessive processing and long runtimes when the file is opened. This issue is fixed in version 6.21.2.
Title pypdf: Possible long runtimes for large xref table header limits
Weaknesses CWE-834
References
Metrics cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-606

    Unchecked Input for Loop Condition

  • CWE-834

    Excessive Iteration

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 29, 2026, 6:01 PM
Reserved
Oct 22, 2026, 10:53 PM
Status
Awaiting Analysis
Published
Oct 23, 2026, 8:17 PM
Modified
Nov 2, 2026, 4:06 PM
Severity
Moderate
Public date
Oct 23, 2026, 7:29 PM