Vulnerability · Published Jan 10, 2026 · Assigned by GitHub_M
CVE-2026-22691pypdf has possible long runtimes for malformed startxref
Low 2.7
In plain English
A low-severity regular-expression denial of service in pypdf from py-pdf. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 38% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | pypdf | no fix listed | DEBIAN-CVE-2026-22691 |
| Debian:13 | pypdf | no fix listed | DEBIAN-CVE-2026-22691 |
| Debian:14 | pypdf | 6.9.0-1 | DEBIAN-CVE-2026-22691 |
| Debian:12 | pypdf2 | no fix listed | DEBIAN-CVE-2026-22691 |
| PyPI | pypdf | 6.6.0 | GHSA-4f6g-68pf-7vhv |
| PyPI | pypdf | 6.6.0 | PYSEC-2026-1828 |
| Ubuntu:24.04:LTS | pypdf | no fix listed | UBUNTU-CVE-2026-22691 |
| Ubuntu:25.10 | pypdf | no fix listed | UBUNTU-CVE-2026-22691 |
| Ubuntu:26.04:LTS | pypdf | no fix listed | UBUNTU-CVE-2026-22691 |
| Ubuntu:26.10 | pypdf | no fix listed | UBUNTU-CVE-2026-22691 |
| Ubuntu:22.04:LTS | pypdf2 | no fix listed | UBUNTU-CVE-2026-22691 |
| Ubuntu:24.04:LTS | pypdf2 | no fix listed | UBUNTU-CVE-2026-22691 |
Affected products (as reported)
Weakness: CWE-1333, CWE-400 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U
References
- https://github.com/py-pdf/pypdf/security/advisories/GHSA-4f6g-68pf-7vhv x_refsource_CONFIRM
- https://github.com/py-pdf/pypdf/pull/3594 x_refsource_MISC
- https://github.com/py-pdf/pypdf/commit/294165726b646bb7799be1cc787f593f2fdbcf45 x_refsource_MISC
- https://github.com/py-pdf/pypdf/releases/tag/6.6.0 x_refsource_MISC