7.1High

CVE-2026-119203pypdf: Possible infinite loop when hitting EOF in standard xref table during trailer search

py-pdf pypdf Published: (20 days ago)

Description

pypdf is a free and open-source pure-python PDF library. Prior to 6.21.4, pypdf can enter an infinite loop while opening a crafted incomplete PDF whose standard cross-reference table reaches the end of the file without a trailer. The trailer search can repeatedly rewind to the same stream position instead of terminating when parsing makes no progress, blocking the processing thread. This issue is fixed in version 6.21.4.

Weakness (CWE): CWE-835

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
py-pdf pypdf < 6.21.4

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:py-pdf:pypdf:*:*:*:*:*:*:*:* < 6.21.4