CVE-2026-54530: CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') in py-pdf pypdf
pypdf is a free and open-source pure-python PDF library. Prior to 6.13.0, an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires extracting the text in layout mode. This vulnerability is fixed in 6.13.0.
AI Analysis
Technical Summary
The pypdf library, a pure-Python PDF processing tool, contains a vulnerability identified as CVE-2026-54530 (CWE-835) where an attacker can craft a malicious PDF that triggers an infinite loop during text extraction in layout mode. This affects all versions before 6.13.0. The vulnerability does not require user interaction or privileges and has a CVSS 4.0 base score of 6.9, indicating medium severity. The infinite loop could cause denial of service by hanging the processing application. The issue is resolved in pypdf version 6.13.0.
Potential Impact
An attacker can cause a denial of service by crafting a PDF that triggers an infinite loop during text extraction in layout mode, potentially causing the application using pypdf to hang or become unresponsive. There is no indication of privilege escalation, code execution, or data leakage from this vulnerability.
Mitigation Recommendations
Upgrade pypdf to version 6.13.0 or later, where this infinite loop vulnerability is fixed. Patch status is confirmed by the vendor stating the fix is in 6.13.0. No additional mitigation is indicated.
CVE-2026-54530: CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') in py-pdf pypdf
Description
pypdf is a free and open-source pure-python PDF library. Prior to 6.13.0, an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This requires extracting the text in layout mode. This vulnerability is fixed in 6.13.0.
CVSS v4.0
Score 6.9medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The pypdf library, a pure-Python PDF processing tool, contains a vulnerability identified as CVE-2026-54530 (CWE-835) where an attacker can craft a malicious PDF that triggers an infinite loop during text extraction in layout mode. This affects all versions before 6.13.0. The vulnerability does not require user interaction or privileges and has a CVSS 4.0 base score of 6.9, indicating medium severity. The infinite loop could cause denial of service by hanging the processing application. The issue is resolved in pypdf version 6.13.0.
Potential Impact
An attacker can cause a denial of service by crafting a PDF that triggers an infinite loop during text extraction in layout mode, potentially causing the application using pypdf to hang or become unresponsive. There is no indication of privilege escalation, code execution, or data leakage from this vulnerability.
Mitigation Recommendations
Upgrade pypdf to version 6.13.0 or later, where this infinite loop vulnerability is fixed. Patch status is confirmed by the vendor stating the fix is in 6.13.0. No additional mitigation is indicated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-15T18:40:01.651Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a39a0f5eed863c81e6b01f5
Added to database: 06/22/2026, 20:54:13 UTC
Last enriched: 06/29/2026, 21:52:13 UTC
Last updated: 08/04/2026, 12:46:13 UTC
Views: 71
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.