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.
Published: 2026-10-23
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service
Action: Apply Patch
AI Analysis

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.

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

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

Sat, 31 Oct 2026 10:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Sat, 24 Oct 2026 00:30:00 +0000

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


Fri, 23 Oct 2026 23:00:00 +0000

Type Values Removed Values Added
First Time appeared Py-pdf
Py-pdf pypdf
Vendors & Products Py-pdf
Py-pdf pypdf

Fri, 23 Oct 2026 19:45:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-29T18:01:23.279Z

Reserved: 2026-10-22T22:53:15.238Z

Link: CVE-2026-115580

cve-icon Vulnrichment

Updated: 2026-10-29T18:01:16.331Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-23T20:17:21.087

Modified: 2026-11-02T16:06:04.477

Link: CVE-2026-115580

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-23T19:29:49Z

Links: CVE-2026-115580 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-24T01:30:18Z

Weaknesses
  • CWE-606

    Unchecked Input for Loop Condition

  • CWE-834

    Excessive Iteration