PYSEC-2026-3005

pypdf has a possible infinite loop when loading circular /Prev entries in cross-reference streams

At a glance

Published
Updated
CVE
CVE-2026-27628
Aliases
GHSA-2rw7-x74f-jg35
CVSS_V4
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U

Description

### Impact An attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires reading the file. ### Patches This has been fixed in [pypdf==6.7.2](https://github.com/py-pdf/pypdf/releases/tag/6.7.2). ### Workarounds If users cannot upgrade yet, consider applying the changes from PR [#3655](https://github.com/py-pdf/pypdf/pull/3655).

Affected packages

PackageVersions
PyPI · pypdfintroduced 0, fixed 6.7.2

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — PyPA Advisory Database