Memory Allocation with Excessive Size Value Affecting pypdf package, versions [,6.10.2)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-PYPDF-16097901
  • published17 Apr 2026
  • disclosed16 Apr 2026
  • creditL3B4nk4

Introduced: 16 Apr 2026

New CVE NOT AVAILABLE CWE-789  (opens in a new tab)

How to fix?

Upgrade pypdf to version 6.10.2 or higher.

Overview

pypdf is an A pure-python PDF library capable of splitting, merging, cropping, and transforming PDF files

Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value via the FlateDecode method when handling streams with a /Predictor value not equal to 1 and large predictor parameters. An attacker can cause excessive memory consumption by crafting a specially formed PDF file.

CVSS Base Scores

version 4.0
version 3.1