Description
pypdf is a free and open-source pure-python PDF library. Prior to 6.14.0, an attacker can craft a PDF with repeated malformed cross-reference streams that cause pypdf to spend long runtimes recovering broken cross-reference table entries. This issue is fixed in version 6.14.0.
Published: 2026-07-08
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

pypdf is a free, pure‑Python PDF library. An attacker can craft a PDF that contains repeated malformed cross‑reference streams, forcing pypdf to spend an extended amount of time attempting to recover broken cross‑reference table entries. This uncontrolled resource consumption can lead to a denial of service by exhausting CPU time or memory. The flaw is classified as CWE‑400 and CWE‑1050, representing uncontrolled resource consumption and an uninitialized variable usage weakness.

Affected Systems

The vulnerability affects all releases of the py‑pdf:pypdf library prior to that parses PDFs using pypdf—such as web services, document conversion tools, or arbitrary Python code that imports the library—is potentially impacted.

Risk and Exploitability

The CVSS score of 6.9 indicates moderate severity. Exploitation requires the attacker to supply a malicious PDF to the vulnerable library, which may be possible in externally exposed services that accept PDF input. The EPSS score of < 1% indicates a very low probability of exploitation, and the vulnerability is not listed in the CISA KEV catalog, suggesting no widespread exploitation to date. This flaw, which involves CWE‑1050 and CWE‑400, is associated with resource exhaustion and potential uninitialized variable usage. The likely attack vector is supplying a malicious PDF via an externally exposed service that accepts PDF input; this is inferred from the description, as the vulnerability only manifests when pypdf processes a crafted PDF. Nonetheless, the DoS impact could severely rely on pypdf, making the risk significant if other controls are not in place.

Generated by OpenCVE AI on July 25, 2026 at 20:43 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the vendor‑supplied patch by upgrading to pypdf 6.14.0 or newer, which fixes the CWE‑400 flaw.
  • Enforce limits on PDF size and complexity as advised under CWE‑400 to prevent resource exhaustion, possibly by sandboxing the parsing process with CPU and memory quotas.
  • Implement rate‑limiting on PDF ingestion endpoints to mitigate DoS, following CWE‑400 best practices for limiting resource consumption.
  • Validate that all variables used in cross‑reference stream recovery are properly initialized, mitigating the CWE‑1050 uninitialized variable issue.

Generated by OpenCVE AI on July 25, 2026 at 20:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-55h5-xmcq-c37v pypdf: Possible long runtimes for repeated malformed cross-reference entries
History

Sat, 11 Jul 2026 00:15:00 +0000

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

None

cvssV3_1

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

threat_severity

Moderate


Thu, 09 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 08 Jul 2026 20:45:00 +0000

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

Wed, 08 Jul 2026 17:30:00 +0000

Type Values Removed Values Added
Description pypdf is a free and open-source pure-python PDF library. Prior to 6.14.0, an attacker can craft a PDF with repeated malformed cross-reference streams that cause pypdf to spend long runtimes recovering broken cross-reference table entries. This issue is fixed in version 6.14.0.
Title pypdf: Possible long runtimes for repeated malformed cross-reference entries
Weaknesses CWE-400
References
Metrics cvssV4_0

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


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-09T14:41:30.071Z

Reserved: 2026-07-07T18:20:06.127Z

Link: CVE-2026-59937

cve-icon Vulnrichment

Updated: 2026-07-09T14:38:03.628Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-08T17:25:34Z

Links: CVE-2026-59937 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-25T20:45:02Z

Weaknesses
  • CWE-1050

    Excessive Platform Resource Consumption within a Loop

  • CWE-400

    Uncontrolled Resource Consumption