CVE-2026-22691 Details
Description
pypdf is a free and open-source pure-python PDF library. Prior to version 6.6.0, pypdf has possible long runtimes for malformed startxref. An attacker who uses this vulnerability can craft a PDF which leads to possibly long runtimes for invalid startxref entries. When rebuilding the cross-reference table, PDF files with lots of whitespace characters become problematic. Only the non-strict reading mode is affected. Only the non-strict reading mode is affected. This issue has been patched in version 6.6.0.
A performance vulnerability has been identified in the pypdf library, specifically in versions prior to 6.6.0. The issue arises in the non-strict reading mode when the library encounters malformed 'startxref' entries in PDF files. This can lead to excessively long processing times as the library attempts to rebuild the cross-reference table. The problem is exacerbated by PDF files containing a significant amount of whitespace, which can disrupt the parsing of object references. In strict mode, this vulnerability does not exist.
Users can upgrade to pypdf version 6.6.0 or later, where this vulnerability has been fixed. For those who need to use an earlier version, switching to strict mode when reading PDF files can help avoid the issue. This can be done by passing the 'strict=True' argument to the PdfReader class.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 12, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/py-pdf/pypdf/commit/294165726b646bb7799be1cc787f593f2fdbcf45 | [email protected] | Patch |
| https://github.com/py-pdf/pypdf/pull/3594 | [email protected] | Issue TrackingPatch |
| https://github.com/py-pdf/pypdf/releases/tag/6.6.0 | [email protected] | Release Notes |
| https://github.com/py-pdf/pypdf/security/advisories/GHSA-4f6g-68pf-7vhv | [email protected] | MitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1333 | Inefficient Regular Expression Complexity | [email protected] |
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| py-pdf pypdf | < 6.6.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 2, 2026 | CPE Deprecation Remap | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 22, 2026 | Initial Analysis | [email protected] |
| Jan 10, 2026 | New CVE Received | [email protected] |