Infinite loop Affecting pypdf package, versions [,6.9.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (13th 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-15766701
  • published26 Mar 2026
  • disclosed25 Mar 2026
  • creditKevin Cao

Introduced: 25 Mar 2026

NewCVE-2026-33699  (opens in a new tab)
CWE-835  (opens in a new tab)

How to fix?

Upgrade pypdf to version 6.9.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 Infinite loop in the read_from_stream function of DictionaryObject. An attacker can cause the application to enter an infinite loop by providing a specially crafted PDF file when the file is read in non-strict mode.

Note:

This is only exploitable if non-strict mode is enabled.

CVSS Base Scores

version 4.0
version 3.1