Inefficient Algorithmic Complexity Affecting pypdf package, versions [,7.0.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.49% (44th 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-PYPDF-22733144
  • published22 Nov 2026
  • disclosed21 Nov 2026
  • creditBe33eD

Introduced: 21 Nov 2026

NewCVE-2026-134366  (opens in a new tab)
CWE-407  (opens in a new tab)

How to fix?

Upgrade pypdf to version 7.0.0 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 Inefficient Algorithmic Complexity via _get_object_from_stream in pypdf/_reader.py when parsing a PDF whose cross-reference stream contains offsets that all point to the same large object. Because the parser does not enforce that offsets must be strictly increasing, it repeatedly creates the same object for every entry in the index, causing unbounded memory consumption.

References

CVSS Base Scores

version 4.0
version 3.1