Pdfly: pypdf: Possible infinite loop when retrieving fonts for layout-mode text extraction (CVE-2026-54530)
A vulnerability in pdfly's pypdf component allows an attacker to craft a malicious PDF that triggers an infinite loop during text extraction in layout mode. This can cause denial of service by hanging the extraction process. The issue affects versions from 0.4.0 up to but not including 0.5.1_21. An official fix is available in pypdf version 6.13.0. For those unable to upgrade immediately, applying the changes from the referenced pull request is recommended.
AI Analysis
Technical Summary
CVE-2026-54530 describes a vulnerability in pdfly's pypdf library where specially crafted PDFs cause an infinite loop when extracting fonts in layout mode. This flaw can be exploited to cause a denial of service condition by hanging the text extraction process. The vulnerability affects versions >=0.4.0 and <0.5.1_21. The issue has been addressed and fixed in pypdf version 6.13.0. Workarounds include applying code changes from PR #3830 if upgrading is not feasible.
Potential Impact
An attacker can cause a denial of service by crafting a PDF that triggers an infinite loop during font retrieval in layout-mode text extraction. This impacts availability by potentially hanging or crashing the application performing the extraction. There is no indication of privilege escalation, data disclosure, or code execution from the provided information.
Mitigation Recommendations
Upgrade to pypdf version 6.13.0 or later where the vulnerability is fixed. If upgrading immediately is not possible, apply the changes from pull request #3830 as a temporary workaround. No other mitigation steps are indicated.
Pdfly: pypdf: Possible infinite loop when retrieving fonts for layout-mode text extraction (CVE-2026-54530)
Description
A vulnerability in pdfly's pypdf component allows an attacker to craft a malicious PDF that triggers an infinite loop during text extraction in layout mode. This can cause denial of service by hanging the extraction process. The issue affects versions from 0.4.0 up to but not including 0.5.1_21. An official fix is available in pypdf version 6.13.0. For those unable to upgrade immediately, applying the changes from the referenced pull request is recommended.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-54530 describes a vulnerability in pdfly's pypdf library where specially crafted PDFs cause an infinite loop when extracting fonts in layout mode. This flaw can be exploited to cause a denial of service condition by hanging the text extraction process. The vulnerability affects versions >=0.4.0 and <0.5.1_21. The issue has been addressed and fixed in pypdf version 6.13.0. Workarounds include applying code changes from PR #3830 if upgrading is not feasible.
Potential Impact
An attacker can cause a denial of service by crafting a PDF that triggers an infinite loop during font retrieval in layout-mode text extraction. This impacts availability by potentially hanging or crashing the application performing the extraction. There is no indication of privilege escalation, data disclosure, or code execution from the provided information.
Mitigation Recommendations
Upgrade to pypdf version 6.13.0 or later where the vulnerability is fixed. If upgrading immediately is not possible, apply the changes from pull request #3830 as a temporary workaround. No other mitigation steps are indicated.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-pdfly-CVE-2026-54530
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ac1396ca43b0b3b89d5fddb
Added to database: 10/03/2026, 17:20:44 UTC
Last enriched: 10/03/2026, 17:26:14 UTC
Last updated: 10/04/2026, 02:46:05 UTC
Views: 4
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.