All vulnerabilities

PyPI

CVE-2026-119208

pypdf has possible long runtimes/large memory usage for encrypted PDF files

Severity
High
Published
30 Oct 2026
Last changed
30 Oct 2026
Added to UpHeron
23 Nov 2026
Fixed in
6.21.3
Exploit chance
0.3% in the next 30 daysHigher than 23% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Uncontrolled resource consumption (CWE-400)Allocation without limits (CWE-770)
Also known as
GHSA-62m5-6wh8-28x7
Sources
OSV.dev and GitHub

Description

An attacker who uses this vulnerability can craft a PDF which leads to large runtimes/memory usage. This requires accessing the page count of an encrypted PDF file, which itself declares a wrong /Count value.

From the GitHub Advisory Database, CC BY 4.0.

Workarounds

If you cannot upgrade yet, consider applying the changes from PR #4270.

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
pypdfPyPI · osv:PyPI:pypdf
  • Every version before 6.21.3

About pypdf

Weekly downloads (PyPI)
51,984,861PyPI Stats, 23 Nov 2026

References