GitHub Advisoryadvisory · PyPI
GHSA-2rw7-x74f-jg35 pypdf has a possible infinite loop when loading circular /Prev entries in cross-reference streams
LOW
Official page ↗
- Aliases
- CVE-2026-27628
- Ecosystem
- PyPI
- Packages
- pypdf
- Severity
- Low
- CVSS vector
- 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
- Weaknesses
- CWE-835
- Reviewed
- 2026-02-25
Affected packages
• PyPI pypdf: < 6.7.2 → fixed in 6.7.2
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.
Workarounds
If users cannot upgrade yet, consider applying the changes from PR #3655.
Related
Alias · CVE (1)
- CVE-2026-27628 pypdf is a free and open-source pure-python PDF library. vulnerability
Weakness · CWE (1)
- CWE-835 Loop with Unreachable Exit Condition weakness
References
- https://github.com/py-pdf/pypdf/security/advisories/GHSA-2rw7-x74f-jg35 web
- https://nvd.nist.gov/vuln/detail/CVE-2026-27628 advisory
- https://github.com/py-pdf/pypdf/issues/3654 web
- https://github.com/py-pdf/pypdf/commit/f0a462d36971cf077d74492a348d0d06fd60ea4d web
- https://github.com/py-pdf/pypdf package