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: n/a
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. 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 23, 2026 at 20:51 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 vulnerability.
  • 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 23, 2026 at 20:51 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

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


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-23T19:29:49.845Z

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

Link: CVE-2026-115580

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

Link: CVE-2026-115580

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-23T21:00:08Z

Weaknesses