Description
pypdf is a free and open-source pure-python PDF library. Prior to 6.21.0, an attacker can craft a PDF containing arrays or dictionaries with many elements, causing parsing to consume large amounts of memory. This issue is fixed in version 6.21.0.
Published: 2026-10-21
Score: 6 Medium
EPSS: n/a
KEV: No
Impact: Denial of Service
Action: Patch
AI Analysis

Impact

The vulnerability resides in the PDF parsing logic of the pure‑Python pypdf library. Attackers who can supply a crafted PDF file containing exceptionally large arrays or dictionaries will cause the parser to allocate memory proportional to the number of elements. The resulting memory exhaustion can lead to a denial of service or cause the host application to crash, thereby compromising availability. This weakness corresponds to CWE‑400 (Uncontrolled Resource Consumption) and CWE‑770 (Memory Allocation Failure).

Affected Systems

Any environment that uses the pypdf library version 6.20.0 or earlier is affected. The library is distributed under the py‑pdf project and is often used in Python applications that read PDF documents. Versions 6.21.0 and later contain the fixed parser logic.

Risk and Exploitability

The CVSS score of 6.0 classifies the risk as medium, and there is no EPSS value currently available, leaving the exploitation probability uncertain. The vulnerability is not listed in the CISA KEV catalog. Because the flaw is triggered only when the library parses a malicious PDF, the attack vector is effectively through the ingestion of a crafted document. Applications that process untrusted PDFs without additional input validation can be exposed to resource exhaustion attacks.

Generated by OpenCVE AI on October 21, 2026 at 20:10 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the pypdf library to version 6.21.0 or later.
  • If an upgrade cannot be performed immediately, restrict the size of PDF files or the number of array/dictionary elements processed, or remove untrusted PDF parsing from critical paths.
  • Enable monitoring of memory consumption during PDF parsing and set thresholds to terminate the process if usage exceeds expected limits.

Generated by OpenCVE AI on October 21, 2026 at 20:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 21 Oct 2026 17:15:00 +0000

Type Values Removed Values Added
Description pypdf is a free and open-source pure-python PDF library. Prior to 6.21.0, an attacker can craft a PDF containing arrays or dictionaries with many elements, causing parsing to consume large amounts of memory. This issue is fixed in version 6.21.0.
Title pypdf: Possible large memory usage when parsing arrays and dictionaries
Weaknesses CWE-400
CWE-770
References
Metrics cvssV4_0

{'score': 6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/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-21T15:35:52.503Z

Reserved: 2026-10-20T17:39:41.372Z

Link: CVE-2026-113790

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-21T16:17:26.880

Modified: 2026-10-21T16:17:26.880

Link: CVE-2026-113790

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-21T20:15:06Z

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-770

    Allocation of Resources Without Limits or Throttling