Loop with Unreachable Exit Condition ('Infinite Loop') Affecting pypdf package, versions <6.21.0-1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.47% (40th 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-DEBIANUNSTABLE-PYPDF-21435164
  • published23 Oct 2026
  • disclosed21 Oct 2026

Introduced: 21 Oct 2026

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

How to fix?

Upgrade Debian:unstable pypdf to version 6.21.0-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream pypdf package and not the pypdf package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

pypdf is a free and open-source pure-python PDF library. Prior to 6.20.0, an attacker can craft an incomplete PDF that ends inside a standard cross-reference table, causing pypdf to mishandle the unexpected end of file and enter an infinite loop. This issue is fixed in version 6.20.0.