CVE-2026-54530: CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') in py-pdf pypdf
A vulnerability in the pypdf Python library prior to version 6.13.0 allows an attacker to craft a malicious PDF that causes an infinite loop when extracting text in layout mode. This issue is identified as CWE-835 (Loop with Unreachable Exit Condition). The vulnerability has a medium severity rating and is fixed in version 6.13.0.
AI Analysis
Technical Summary
CVE-2026-54530 describes an infinite loop vulnerability in the pypdf library, a pure-Python PDF processing tool. The flaw occurs when extracting text in layout mode from a specially crafted PDF, causing the library to enter a loop with no exit condition. This can lead to denial of service by resource exhaustion. The vulnerability affects all versions prior to 6.13.0 and is resolved by updating to 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. This may cause the application using pypdf to hang or consume excessive CPU resources. There is no indication of privilege escalation, data disclosure, or code execution from the provided data.
Mitigation Recommendations
Upgrade pypdf to version 6.13.0 or later, where this infinite loop vulnerability is fixed. Since the vendor advisory indicates the issue is resolved in 6.13.0, applying this official fix is the recommended remediation. No other mitigation or temporary workaround is specified.
CVE-2026-54530: CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') in py-pdf pypdf
Description
A vulnerability in the pypdf Python library prior to version 6.13.0 allows an attacker to craft a malicious PDF that causes an infinite loop when extracting text in layout mode. This issue is identified as CWE-835 (Loop with Unreachable Exit Condition). The vulnerability has a medium severity rating and is fixed in version 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
CVE-2026-54530 describes an infinite loop vulnerability in the pypdf library, a pure-Python PDF processing tool. The flaw occurs when extracting text in layout mode from a specially crafted PDF, causing the library to enter a loop with no exit condition. This can lead to denial of service by resource exhaustion. The vulnerability affects all versions prior to 6.13.0 and is resolved by updating to 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. This may cause the application using pypdf to hang or consume excessive CPU resources. There is no indication of privilege escalation, data disclosure, or code execution from the provided data.
Mitigation Recommendations
Upgrade pypdf to version 6.13.0 or later, where this infinite loop vulnerability is fixed. Since the vendor advisory indicates the issue is resolved in 6.13.0, applying this official fix is the recommended remediation. No other mitigation or temporary workaround is specified.
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/22/2026, 21:09:33 UTC
Last updated: 06/23/2026, 01:02:33 UTC
Views: 10
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.