Description
pypdf is a free and open-source pure-python PDF library. Prior to 6.13.3, a maliciously crafted PDF can cause DoS. An attacker who uses this vulnerability can craft a PDF which leads to large memory usage, as MAX_DECLARED_STREAM_LENGTH is sometimes ignored. This requires parsing a content stream without a /Length value. This issue has been fixed in version 6.13.3.
Published: 2026-06-30
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability allows a maliciously crafted PDF that omits the required /Length entry to cause the pure‑python library to allocate an unbounded amount of memory while parsing the stream, leading to memory exhaustion or a crash. This flaw is a denial of service vulnerability due to unbounded memory allocation (CWE‑770). The attack does not compromise confidentiality or integrity, but it can render the application or host unavailable.

Affected Systems

Any software that imports the py-pdf:pypdf library and processes untrusted PDF documents—such as document viewers, converters, or web services handling user uploads—is affected if it uses a version earlier than 6.13.3.

Risk and Exploitability

The CVSS score of 6.9 indicates a serious risk. The EPSS score of less than 1% suggests that actual exploitation is currently rare, and the vulnerability is not listed in CISA’s KEV catalog. Because the attack requires only a crafted PDF and does not need elevated privileges, the potential impact can be high in environments that accept external files, making this a moderate–to–high risk for exposed systems.

Generated by OpenCVE AI on July 17, 2026 at 15:13 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade pypdf to version 6.13.3 or later to apply the official fix
  • Validate PDFs for a proper /Length declaration before passing them to the library, rejecting any that lack the required entry
  • Apply application‑level resource limits or run PDF parsing in an isolated process with memory or timeouts to mitigate memory exhaustion risks

Generated by OpenCVE AI on July 17, 2026 at 15:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 02 Jul 2026 12:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-770
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate


Wed, 01 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 01 Jul 2026 04:00:00 +0000

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

Tue, 30 Jun 2026 22:15:00 +0000

Type Values Removed Values Added
Description pypdf is a free and open-source pure-python PDF library. Prior to 6.13.3, a maliciously crafted PDF can cause DoS. An attacker who uses this vulnerability can craft a PDF which leads to large memory usage, as MAX_DECLARED_STREAM_LENGTH is sometimes ignored. This requires parsing a content stream without a /Length value. This issue has been fixed in version 6.13.3.
Title pypdf: Missing stream length values ignore defined limits
Weaknesses CWE-400
References
Metrics cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-01T14:29:01.785Z

Reserved: 2026-06-24T02:00:46.801Z

Link: CVE-2026-57204

cve-icon Vulnrichment

Updated: 2026-07-01T13:57:20.042Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-06-30T21:59:46Z

Links: CVE-2026-57204 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-17T15:15:16Z

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-770

    Allocation of Resources Without Limits or Throttling