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: < 1% Very Low
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 22, 2026 at 03:14 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 22, 2026 at 03:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-f54x-cmq8-qg57 pypdf: Possible large memory usage when parsing arrays and dictionaries
History

Thu, 05 Nov 2026 21:45:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:py-pdf:pypdf:*:*:*:*:*:python:*:*
Metrics 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'}

cvssV3_1

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


Wed, 28 Oct 2026 02:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 22 Oct 2026 12:30:00 +0000

Type Values Removed Values Added
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


Thu, 22 Oct 2026 02:00:00 +0000

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

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


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-28T01:18:59.036Z

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

Link: CVE-2026-113790

cve-icon Vulnrichment

Updated: 2026-10-28T01:18:54.469Z

cve-icon NVD

Status : Analyzed

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

Modified: 2026-11-05T21:35:07.257

Link: CVE-2026-113790

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-21T15:35:52Z

Links: CVE-2026-113790 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-22T03:15:14Z

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-770

    Allocation of Resources Without Limits or Throttling