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: < 1% Very Low
KEV: No
Impact: Denial of Service via memory/time exhaustion
Action: Patch
AI Analysis

Impact

pypdf is a pure‑Python PDF library that, before version 6.21.0, allows an attacker to craft a PDF containing a large or specially arranged form. When an application imports pypdf and calls the form‑field retrieval routine, the library can consume excessive memory or run for an extended period, leading to temporary denial of service by exhausting system resources. The weakness is aligned with resource‑exhaustion (CWE‑400), inefficient loop processing (CWE‑407), and long‑running operations that exceed memory limits (CWE‑770).

Affected Systems

The issue affects all deployments of the py‑pdf pypdf package that are older than 6.21.0. Any application that imports pypdf and invokes form‑field extraction is potentially exposed; no other vendors or product families are listed as affected.

Risk and Exploitability

The CVSS score of 6 indicates moderate severity, but the EPSS score of < 1% shows that real‑world exploitation is considered unlikely. The vulnerability is not listed in CISA KEV. The likely attack vector is the delivery of a malicious PDF to a target application that processes PDFs, such as a web service or desktop utility that accepts user‑supplied files. Upon processing, the application may become unresponsive or crash due to the extreme memory usage or prolonged runtime.

Generated by OpenCVE AI on October 22, 2026 at 15:11 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade pypdf to version 6.21.0 or later
  • Disable or restrict form‑field extraction functionality if it is not needed, modifying code or configuration
  • If an upgrade is not feasible, run PDF processing inside a sandbox or container with strict CPU and memory limits to contain potential resource exhaustion

Generated by OpenCVE AI on October 22, 2026 at 15:11 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-6vvc-x485-93v7 pypdf: Possible long runtimes/large memory usage when retrieving form fields
History

Mon, 02 Nov 2026 16:30: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 17: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
Weaknesses CWE-770
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 00:30: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 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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-28T16:42:29.030Z

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

Link: CVE-2026-113789

cve-icon Vulnrichment

Updated: 2026-10-28T16:42:25.960Z

cve-icon NVD

Status : Analyzed

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

Modified: 2026-11-02T16:12:15.797

Link: CVE-2026-113789

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-21T15:33:45Z

Links: CVE-2026-113789 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-22T15:15:07Z

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-407

    Inefficient Algorithmic Complexity

  • CWE-770

    Allocation of Resources Without Limits or Throttling