CVE-2026-57204
Analyzed Analyzed - Analysis Complete

Memory Exhaustion in PyPDF via Malicious PDF

Vulnerability report for CVE-2026-57204, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-06-30

Last updated on: 2026-07-06

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-06-30
Last Modified
2026-07-06
Generated
2026-07-21
AI Q&A
2026-07-01
EPSS Evaluated
2026-07-19
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
pypdf_project pypdf to 6.13.3 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-400 The product does not properly control the allocation and maintenance of a limited resource.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability exists in the pypdf library, a pure-python PDF library. Before version 6.13.3, it was possible for an attacker to craft a malicious PDF file that causes a denial of service (DoS) by triggering large memory usage. This happens because the library sometimes ignores the MAX_DECLARED_STREAM_LENGTH setting when parsing a content stream that lacks a /Length value.

Detection Guidance

This vulnerability in pypdf involves processing malicious PDFs that contain content streams without a /Length value, leading to excessive memory usage and potential denial-of-service.

To detect this vulnerability on your system, you can check the version of the pypdf library installed. Versions prior to 6.13.3 are vulnerable.

Suggested commands to detect the vulnerable version of pypdf:

  • For Python environments, run: `pip show pypdf` or `pip list | grep pypdf` to see the installed version.
  • If the version is older than 6.13.3, your system is vulnerable.

To detect malicious PDFs exploiting this vulnerability on your network or system, you can monitor for unusually high memory usage or crashes when processing PDFs with pypdf, especially those lacking /Length in content streams. However, no specific detection commands or signatures are provided in the available resources.

Impact Analysis

The impact of this vulnerability is a denial of service (DoS) condition. An attacker can exploit it by providing a specially crafted PDF that causes the pypdf library to consume excessive memory, potentially leading to application crashes or degraded performance.

Compliance Impact

The vulnerability in pypdf (CVE-2026-57204) allows an attacker to cause a denial-of-service (DoS) by crafting malicious PDFs that lead to excessive memory consumption. This type of vulnerability primarily impacts availability by potentially disrupting service.

There is no direct information in the provided context or resources about how this vulnerability affects compliance with common standards and regulations such as GDPR or HIPAA.

Mitigation Strategies

To mitigate this vulnerability, upgrade the pypdf library to version 6.13.3 or later, where the issue has been fixed.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-57204. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart