CVE-2026-41313: pypdf: Possible long runtimes for wrong size values in incremental mode
pypdf is a free and open-source pure-python PDF library. An attacker who uses a vulnerability present in versions prior to 6.10.2 can craft a PDF which leads to long runtimes. This requires loading a PDF with a large trailer /Size value in incremental mode. This has been fixed in pypdf 6.10.2. As a workaround, one may apply the changes from the patch manually.
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2026-41313?
The severity of CVE-2026-41313 is considered to be significant due to the potential for long runtimes caused by specially crafted PDFs.
How do I fix CVE-2026-41313?
To fix CVE-2026-41313, upgrade to pypdf version 6.10.2 or later.
What versions of pypdf are affected by CVE-2026-41313?
All versions of pypdf prior to 6.10.2 are affected by CVE-2026-41313.
What type of attack does CVE-2026-41313 enable?
CVE-2026-41313 enables an attacker to create a PDF that results in long processing times, leading to potential resource exhaustion.
Is CVE-2026-41313 related to any specific functionality in pypdf?
CVE-2026-41313 is specifically related to the library's incremental mode when handling large trailer sizes.