CVE-2026-27628 Details
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.
A denial-of-service vulnerability has been identified in pypdf, a pure-Python PDF library, in versions prior to 6.7.2. The issue arises when the library processes PDFs containing circular '/Prev' references in the cross-reference chain. This flaw causes the PdfReader to enter an infinite loop, consuming 100% CPU and repeatedly logging 'Overwriting cache' warnings. The vulnerability can be exploited by crafting a PDF with these circular references, which can be done using various PDF manipulation tools or libraries.
Users can upgrade to pypdf version 6.7.2 or apply the patch available in pull request #3655 on the pypdf repository.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 25, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/py-pdf/pypdf/issues/3654 | CISA-ADP | Issue TrackingPatch |
| https://github.com/py-pdf/pypdf/commit/f0a462d36971cf077d74492a348d0d06fd60ea4d | [email protected] | |
| https://github.com/py-pdf/pypdf/issues/3654 | [email protected] | Issue TrackingPatch |
| https://github.com/py-pdf/pypdf/security/advisories/GHSA-2rw7-x74f-jg35 | [email protected] | PatchVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-835 | Loop with Unreachable Exit Condition ('Infinite Loop') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| pypdf project pypdf | < 6.7.2 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 27, 2026 | CVE Modified | [email protected] |
| Feb 25, 2026 | CVE Modified | CISA-ADP |
| Feb 25, 2026 | Initial Analysis | [email protected] |
| Feb 25, 2026 | New CVE Received | [email protected] |