Pdfly: pypdf: Possible long runtimes for wrong size values in incremental mode (CVE-2026-41313)
CVE-2026-41313 is a vulnerability in the pdfly pypdf library where loading a crafted PDF with a large trailer /Size value in incremental mode can cause long runtimes. This can lead to denial of service conditions due to resource exhaustion. The issue has been fixed in pypdf version 6.10.2. Users unable to upgrade immediately can apply the changes from the referenced pull request as a workaround.
AI Analysis
Technical Summary
The vulnerability in pdfly's pypdf component involves handling of the /Size value in the PDF trailer when operating in incremental mode. An attacker can craft a PDF file with an excessively large /Size value, causing the library to experience long runtimes during processing. This results in a denial of service impact by exhausting processing resources. The issue has been addressed and fixed in pypdf version 6.10.2. A workaround is available by applying the changes from pull request #3735 if upgrading is not immediately feasible.
Potential Impact
An attacker can cause denial of service by crafting a PDF that triggers long processing times in pypdf when loaded in incremental mode with a large /Size trailer value. There is no confidentiality or integrity impact reported. The impact is limited to availability due to resource exhaustion.
Mitigation Recommendations
Upgrade to pypdf version 6.10.2 or later to apply the official fix. If upgrading is not possible immediately, apply the changes from pull request #3735 as a temporary workaround.
Pdfly: pypdf: Possible long runtimes for wrong size values in incremental mode (CVE-2026-41313)
Description
CVE-2026-41313 is a vulnerability in the pdfly pypdf library where loading a crafted PDF with a large trailer /Size value in incremental mode can cause long runtimes. This can lead to denial of service conditions due to resource exhaustion. The issue has been fixed in pypdf version 6.10.2. Users unable to upgrade immediately can apply the changes from the referenced pull request as a workaround.
CVSS v3.1
Score 6.5medium
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
The vulnerability in pdfly's pypdf component involves handling of the /Size value in the PDF trailer when operating in incremental mode. An attacker can craft a PDF file with an excessively large /Size value, causing the library to experience long runtimes during processing. This results in a denial of service impact by exhausting processing resources. The issue has been addressed and fixed in pypdf version 6.10.2. A workaround is available by applying the changes from pull request #3735 if upgrading is not immediately feasible.
Potential Impact
An attacker can cause denial of service by crafting a PDF that triggers long processing times in pypdf when loaded in incremental mode with a large /Size trailer value. There is no confidentiality or integrity impact reported. The impact is limited to availability due to resource exhaustion.
Mitigation Recommendations
Upgrade to pypdf version 6.10.2 or later to apply the official fix. If upgrading is not possible immediately, apply the changes from pull request #3735 as a temporary workaround.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-pdfly-CVE-2026-41313
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6ac1396ea43b0b3b89d5fdec
Added to database: 10/03/2026, 17:20:46 UTC
Last enriched: 10/03/2026, 17:26:40 UTC
Last updated: 10/04/2026, 03:10:01 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.