Vulnerability · Published Feb 25, 2026 · Assigned by GitHub_M
CVE-2026-27628pypdf has a possible infinite loop when loading circular /Prev entries in cross-reference streams
Low 1.2
In plain English
A low-severity infinite loop in pypdf from py-pdf. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 34% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 4.0)1.2Low
Exploit odds (30 days)0.4%top 65.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | pypdf | no fix listed | DEBIAN-CVE-2026-27628 |
| Debian:13 | pypdf | no fix listed | DEBIAN-CVE-2026-27628 |
| Debian:14 | pypdf | 6.9.0-1 | DEBIAN-CVE-2026-27628 |
| Debian:12 | pypdf2 | no fix listed | DEBIAN-CVE-2026-27628 |
| PyPI | pypdf | 6.7.2 | GHSA-2rw7-x74f-jg35 |
| PyPI | pypdf | 6.7.2 | PYSEC-2026-3005 |
| Ubuntu:24.04:LTS | pypdf | no fix listed | UBUNTU-CVE-2026-27628 |
| Ubuntu:25.10 | pypdf | no fix listed | UBUNTU-CVE-2026-27628 |
| Ubuntu:26.04:LTS | pypdf | no fix listed | UBUNTU-CVE-2026-27628 |
| Ubuntu:26.10 | pypdf | no fix listed | UBUNTU-CVE-2026-27628 |
| Ubuntu:22.04:LTS | pypdf2 | no fix listed | UBUNTU-CVE-2026-27628 |
| Ubuntu:24.04:LTS | pypdf2 | no fix listed | UBUNTU-CVE-2026-27628 |
Affected products (as reported)
Weakness: CWE-835 · 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
References
- https://github.com/py-pdf/pypdf/security/advisories/GHSA-2rw7-x74f-jg35 x_refsource_CONFIRM
- https://github.com/py-pdf/pypdf/issues/3654 x_refsource_MISC
- https://github.com/py-pdf/pypdf/commit/f0a462d36971cf077d74492a348d0d06fd60ea4d x_refsource_MISC