CVE-2026-54651 Details
Description
pypdf is a free and open-source pure-python PDF library. Prior to 6.13.1, an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires merging a file with threads/articles into a writer. This vulnerability is fixed in 6.13.1.
A vulnerability in the pypdf library, prior to version 6.13.1, allows an attacker to create a PDF that causes an infinite loop when processed. This issue arises when merging a file containing threads or articles into a writer.
Users can upgrade to pypdf version 6.13.1 or later to address this vulnerability. If an immediate upgrade is not possible, the changes from PR #3839 can be applied as a workaround.
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 Jun 23, 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/pull/3839 | [email protected] | Issue Tracking |
| https://github.com/py-pdf/pypdf/releases/tag/6.13.1 | [email protected] | Patch |
| https://github.com/py-pdf/pypdf/security/advisories/GHSA-g9xf-7f8q-9mcj | [email protected] | MitigationPatchVendor 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.13.1 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 24, 2026 | Initial Analysis | [email protected] |
| Jun 23, 2026 | CVE Modified | CISA-ADP |
| Jun 22, 2026 | New CVE Received | [email protected] |