Description
pypdf is a free and open-source pure-python PDF library. Prior to 6.21.0, an attacker can craft a PDF that causes large memory usage or long runtimes when an application retrieves the document's form fields. 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 via excessive memory usage
Action: Patch
AI Analysis

Impact

pypdf allows an attacker to craft a PDF containing a large or cleverly structured form that triggers extremely high memory consumption or protracted processing time when an application calls the library’s form‑field extraction routine. The result is temporary denial of service for the process using the library, as system resources can be exhausted or the application can become unresponsive. The weaknesses align with resource‑exhaustion classes, reflected in the CWE designations.

Affected Systems

The vulnerability affects all deployments of the py‑pdf pypdf package that are older than version 6.21.0. Any application importing pypdf and invoking form‑field retrieval capabilities is potentially exposed. No other vendors or product families are listed as affected.

Risk and Exploitability

The CVSS score of 6 indicates moderate severity. The vulnerability is not listed in CISA KEV. Attackers would need to deliver the crafted PDF to the target application, which is usually possible in web services or desktop processing utilities that accept user‑supplied PDFs. Once the PDF is processed, the memory or time drain can cause local resource exhaustion, leading to application slowdown or crash without additional privileges.

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

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade pypdf to version 6.21.0 or later
  • Review the need for form‑field extraction and disable it in environments where it is not required, using configuration or code changes
  • If an immediate upgrade is not feasible, execute PDF processing in a sandboxed or containerized process with strict memory and CPU limits to contain potential resource exhaustion

Generated by OpenCVE AI on October 21, 2026 at 21:17 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 that causes large memory usage or long runtimes when an application retrieves the document's form fields. This issue is fixed in version 6.21.0.
Title pypdf: Possible long runtimes/large memory usage when retrieving form fields
Weaknesses CWE-400
CWE-407
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:33:45.801Z

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

Link: CVE-2026-113789

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

Link: CVE-2026-113789

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-21T21:30:15Z

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-407

    Inefficient Algorithmic Complexity