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.
https://github.com/py-pdf/pypdf/security/advisories/GHSA-5849-834g-hvw5
https://github.com/py-pdf/pypdf/releases/tag/6.21.4
https://github.com/py-pdf/pypdf/pull/4289
https://github.com/py-pdf/pypdf/commit/06593f993789a4b573dd955730c1a7051128bb2a
Published: 2026-10-29
Updated: 2026-10-30
Base Score: 4.3
Vector: CVSS2#AV:N/AC:M/Au:N/C:N/I:N/A:P
Severity: Medium
Base Score: 5.5
Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Severity: Medium
Base Score: 7.1
Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Severity: High
EPSS: 0.00304