CVE-2026-115580
JSON

7.1high

pypdf: Possible long runtimes for large xref table header limits

Severity
7.1high CVSS:4.0 by GitHub_M
Exploit likelihood
0.44% (higher than 40% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-gmh7-3g9r-mjh5

Description

pypdf is a free and open-source pure-python PDF library. Prior to 6.21.2, an attacker can craft a PDF with a standard cross-reference table whose declared entry count exceeds what the file can contain, causing excessive processing and long runtimes when the file is opened. This issue is fixed in version 6.21.2.

Affected

Product or packageVersionsReported by
py-pdf pypdf< 6.21.2CVE List
pypdf (PyPI)before 6.21.2GitHub Advisory Database

All scores

GitHub_M7.1high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Classification

CWE-834

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

pypdf is a free and open-source pure-python PDF library. Prior to 6.21.2, an attacker can craft a PDF with a standard cross-reference table whose declared entry count exceeds what the file can contain, causing excessive processing and long runtimes when the file is opened. This issue is fixed in version 6.21.2.

GitHub Advisory Database
Impact

An attacker who uses this vulnerability can craft a PDF which leads to long runtimes. This requires opening a file with large/wrong upper limits in the xref table.

Patches

This has been fixed in pypdf==6.21.2.

Workarounds

If you cannot upgrade yet, consider applying the changes from PR #4239.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-115580 changed 2026-10-29CVE Terms of Use
GitHub Advisory DatabaseGHSA-gmh7-3g9r-mjh5 changed 2026-10-23CC-BY-4.0
NVDCVE-2026-115580 changed 2026-11-02Public domain