Description
pypdf is a free and open-source pure-python PDF library. Prior to 6.21.0, an attacker can craft a PDF containing a content stream with many small operations, 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 via memory exhaustion
Action: Immediate Patch
AI Analysis

Impact

pypdf, a pure‑Python PDF library, contains a defect whereby parsing a PDF with a content stream of many tiny operations can cause the parser to allocate excessive memory, potentially exhausting system resources and leading to a denial of service. This vulnerability is associated with uncontrolled resource consumption (CWE‑400) and memory overconsumption (CWE‑770). The impact is a crash or slowdown of any application that utilizes pypdf to handle untrusted PDFs.

Affected Systems

Versions of the pypdf library older than 6.21.0 are affected. Any system that imports and uses pypdf to parse user‑supplied PDFs is potentially vulnerable until the library is updated.

Risk and Exploitability

The CVSS score of 6 indicates medium severity. No EPSS data is available, and the vulnerability is not listed in CISA’s KEV catalog. Although the exploit circumstances are not publicly documented, the likely attack vector involves a local attacker supplying a malicious PDF to an application that employs pypdf, forcing the parser to allocate large amounts of memory and causing a denial of service.

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 pypdf to version 6.21.0 or later.
  • Implement input validation to restrict the size or complexity of PDF content streams before parsing, mitigating uncontrolled resource consumption.
  • If immediate upgrade is not possible, isolate PDF parsing in a sandboxed process with a low memory quota or enable kernel‑level memory limits to contain the impact.

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-cgf9-327m-v77c pypdf: Possible large memory usage when parsing content streams
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'}


Fri, 30 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
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 containing a content stream with many small operations, 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 content streams
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-30T15:57:39.880Z

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

Link: CVE-2026-113791

cve-icon Vulnrichment

Updated: 2026-10-30T15:57:33.544Z

cve-icon NVD

Status : Analyzed

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

Modified: 2026-11-05T21:33:03.837

Link: CVE-2026-113791

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-21T15:37:50Z

Links: CVE-2026-113791 - 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