Low severityNVD Advisory· Published Feb 25, 2026· Updated Feb 27, 2026
pypdf has a possible infinite loop when loading circular /Prev entries in cross-reference streams
CVE-2026-27628
Description
pypdf is a free and open-source pure-python PDF library. Prior to 6.7.2, an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires reading the file. This has been fixed in pypdf 6.7.2. As a workaround, one may apply the patch manually.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
pypdfPyPI | < 6.7.2 | 6.7.2 |
Affected products
6- osv-coords5 versionspkg:apk/chainguard/open-webuipkg:apk/wolfi/open-webuipkg:pypi/pypdfpkg:rpm/opensuse/python-PyPDF2&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/python-PyPDF2&distro=openSUSE%20Tumbleweed
< 0.8.5-r0+ 4 more
- (no CPE)range: < 0.8.5-r0
- (no CPE)range: < 0.8.5-r0
- (no CPE)range: < 6.7.2
- (no CPE)range: < 2.11.1-bp160.2.1
- (no CPE)range: < 2.11.1-5.1
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-2rw7-x74f-jg35ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-27628ghsaADVISORY
- github.com/py-pdf/pypdf/commit/f0a462d36971cf077d74492a348d0d06fd60ea4dghsax_refsource_MISCWEB
- github.com/py-pdf/pypdf/issues/3654ghsax_refsource_MISCWEB
- github.com/py-pdf/pypdf/security/advisories/GHSA-2rw7-x74f-jg35ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.