Memory Allocation with Excessive Size Value Affecting pypdf2 package, versions [0,]


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-PYPDF2-16097900
  • 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?

There is no fixed version for PyPDF2.

Overview

PyPDF2 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 in the FlateDecode image processing when handling images with large size values. An attacker can exhaust system memory by crafting a PDF that references an image with manipulated dimensions, leading to resource exhaustion when the file is processed.

CVSS Base Scores

version 4.0
version 3.1