Inefficient Algorithmic Complexity Affecting pypdf2 package, versions [,1.27.9)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.11% (46th percentile)

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-5750281
  • published2 Jul 2023
  • disclosed2 Jul 2023
  • creditdsk7

Introduced: 2 Jul 2023

CVE-2023-36810  (opens in a new tab)
CWE-407  (opens in a new tab)

How to fix?

Upgrade PyPDF2 to version 1.27.9 or higher.

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 Inefficient Algorithmic Complexity by crafting a PDF, leading to an unexpectedly long runtime when trying to read large files without xref marker. This quadratic runtime blocks the current process and can utilize a single CPU core by 100%.

Note: Exploiting this vulnerability does not affect memory usage.

CVSS Scores

version 3.1