Description
pypdf is a free and open-source pure-python PDF library. Prior to 6.21.2, an incomplete remediation for repeated malformed cross-reference entries in GHSA-55h5-xmcq-c37v could still trigger a complete PDF stream reload during each recovery attempt even when a recovery cache was present, causing crafted cross-reference streams to produce long runtimes. 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: Patch Library
AI Analysis

Impact

The pypdf library permits parsing of PDF files. Prior to version 6.21.2, repeated malformed cross‑reference entries could trigger incomplete remediation that forces the library to reload the entire PDF stream on each recovery attempt, even when a recovery cache is present. This results in the parser repeatedly processing large portions of the document, consuming excessive CPU time and leading to very long runtimes. The primary consequence is a denial‑of‑service condition that can stall applications that rely on pypdf to parse normal or user‑supplied PDFs.

Affected Systems

Affected systems are any Python applications that import the py‑pdf:pypdf package and use its default parsing routines. All releases prior to 6.21.2 are vulnerable. The issue is fixed in version 6.21.2, which is available from the project’s releases page.

Risk and Exploitability

The CVSS score of 7.1 classifies this vulnerability as high. The EPSS score is unavailable, yet the attack would require an adversary to craft a PDF containing repeated malformed cross‑reference entries; the nature of the flaw indicates that the attack vector is the supplied PDF data (based on the description, it is inferred that the supply of a crafted PDF is required). Although the vulnerability is not listed in CISA KEV, the high severity score and the potential for widespread exploitation in any environment that processes untrusted PDFs makes it a significant threat. Therefore, any deployment that parses PDFs from unreliable sources should consider the risk to be substantial.

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 to pypdf 6.21.2 or newer
  • If an upgrade is not immediately possible, sandbox the processing of PDFs from untrusted sources to contain any prolonged runtimes
  • Configure the application to impose a timeout on PDF parsing or limit the size of input PDFs to mitigate denial‑of‑service attacks

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-jr96-gvgh-j3r4 pypdf: Possible long runtimes for repeated malformed cross-reference entries (Follow-up)
History

Fri, 30 Oct 2026 17: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-770
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 incomplete remediation for repeated malformed cross-reference entries in GHSA-55h5-xmcq-c37v could still trigger a complete PDF stream reload during each recovery attempt even when a recovery cache was present, causing crafted cross-reference streams to produce long runtimes. This issue is fixed in version 6.21.2.
Title pypdf: Possible long runtimes for repeated malformed cross-reference entries (Follow-up)
Weaknesses CWE-400
CWE-407
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-30T15:56:32.681Z

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

Link: CVE-2026-115585

cve-icon Vulnrichment

Updated: 2026-10-30T15:56:28.476Z

cve-icon NVD

Status : Awaiting Analysis

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

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

Link: CVE-2026-115585

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-23T19:31:52Z

Links: CVE-2026-115585 - Bugzilla

cve-icon OpenCVE Enrichment

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

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-407

    Inefficient Algorithmic Complexity

  • CWE-770

    Allocation of Resources Without Limits or Throttling