Description
pypdf is a free and open-source pure-python PDF library. Prior to 6.21.2, an attacker can craft a PDF that repeatedly references the same nonexistent indirect object, causing relevant file parts such as pages to trigger repeated full-file recovery loads and long runtimes when accessed. 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 via Resource Exhaustion
Action: Apply Patch
AI Analysis

Impact

The vulnerability allows an attacker to craft a PDF that repeatedly references a nonexistent indirect object. When processed by pypdf, these repeated references trigger full-file recovery loads for each reference, resulting in extremely long runtimes and high CPU usage. The weakness is a classic uncontrolled resource consumption scenario, classified under CWE-400. The impact is a denial of service, potentially causing application hangs or memory exhaustion for any process that parses the malicious PDF.

Affected Systems

The affected product is the pypdf library provided by py-pdf. Any version prior to 6.21.2 is vulnerable; the fix is delivered in release 6.21.2 and later. All applications that load PDFs using vulnerable pypdf versions are at risk.

Risk and Exploitability

The CVSS score of 7.1 indicates a medium‑high severity. EPSS data is not available, so the exploitation probability is unknown. The vulnerability is not listed in the CISA KEV catalog, but it can be triggered simply by supplying a malicious PDF to any program that uses pypdf. Based on the description, it is inferred that the attack vector is supplying the crafted PDF to an endpoint that processes PDFs, which could be local or remote depending on the software architecture. No privileged escalation is required; the attack exploits only the resource consumption behavior of the library.

Generated by OpenCVE AI on October 23, 2026 at 20:22 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the pypdf library to version 6.21.2 or later, which removes the repeated object reference handling bug.
  • Validate PDF input before parsing to ensure that objects exist, and reject or recover gracefully when references to non‑existent objects are detected.
  • Configure processing software with timeouts and resource limits for PDF parsing to mitigate the impact of any remaining or similar deficiencies.

Generated by OpenCVE AI on October 23, 2026 at 20:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-6c7f-9265-g8fw pypdf: Possible long runtimes for repeated references to the same missing object
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 that repeatedly references the same nonexistent indirect object, causing relevant file parts such as pages to trigger repeated full-file recovery loads and long runtimes when accessed. This issue is fixed in version 6.21.2.
Title pypdf: Possible long runtimes for repeated references to the same missing object
Weaknesses CWE-400
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:24:51.055Z

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

Link: CVE-2026-115572

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

Link: CVE-2026-115572

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-23T20:30:17Z

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption