CVE-2026-48156
JSON

5.1medium

pypdf: Possible long runtimes for zero-only width values in cross-reference streams

Severity
5.1medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.12% (higher than 2% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-248m-82v9-q6g6PYSEC-2026-3004

Description

pypdf is a free and open-source pure-python PDF library. Prior to 6.12.0, an attacker who uses this vulnerability can craft a PDF which leads to long runtimes. This requires cross-reference streams with /W [0 0 0] values and large /Size values. This vulnerability is fixed in 6.12.0.

Affected

Product or packageVersionsReported by
py-pdf pypdf< 6.12.0, before 6.12.0CVE List, NVD
pypdf (PyPI)before 6.12.0GitHub Advisory Database, PyPA Advisory Database

All scores

GitHub_M5.1medium CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
GitHub3.3medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
GitHubmedium CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
NVD3.3low CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
PyPA Advisory Database3.3low CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
PyPA Advisory DatabaseNot scored CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/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.12.0, an attacker who uses this vulnerability can craft a PDF which leads to long runtimes. This requires cross-reference streams with /W [0 0 0] values and large /Size values. This vulnerability is fixed in 6.12.0.

GitHub Advisory Database
Impact

An attacker who uses this vulnerability can craft a PDF which leads to long runtimes. This requires cross-reference streams with /W [0 0 0] values and large /Size values.

Patches

This has been fixed in pypdf==6.12.0.

Workarounds

If developers are unable to upgrade their apps immediately, they should consider applying the changes from PR #3791.

NVD (es)

pypdf es una biblioteca PDF de Python puro, gratuita y de código abierto. Antes de la versión 6.12.0, un atacante que utiliza esta vulnerabilidad puede crear un PDF que provoca tiempos de ejecución prolongados. Esto requiere flujos de referencias cruzadas con valores /W [0 0 0] y valores /Size grandes. Esta vulnerabilidad está corregida en la versión 6.12.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-48156 changed 2026-05-30CVE Terms of Use
GitHub Advisory DatabaseGHSA-248m-82v9-q6g6 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-48156 changed 2026-11-02Public domain
PyPA Advisory DatabasePYSEC-2026-3004 changed 2026-07-13CC-BY-4.0