CVE-2026-41168
JSON

6.9medium

pypdf has possible long runtimes for wrong size values in cross-reference and object streams

Severity
6.9medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.31% (higher than 25% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-jj6c-8h6c-hppxPYSEC-2026-3021

Description

pypdf is a free and open-source pure-python PDF library. An attacker who uses a vulnerability present in versions prior to 6.10.1 can craft a PDF which leads to long runtimes. This requires cross-reference streams with wrong large `/Size` values or object streams with wrong large `/N` values. This has been fixed in pypdf 6.10.1. As a workaround, one may apply the changes from the patch manually.

Affected

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

All scores

GitHub_M6.9medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
GitHubmedium CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
PyPA Advisory Database5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/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:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Classification

CWE-834

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

What each source says

CVE List

pypdf is a free and open-source pure-python PDF library. An attacker who uses a vulnerability present in versions prior to 6.10.1 can craft a PDF which leads to long runtimes. This requires cross-reference streams with wrong large `/Size` values or object streams with wrong large `/N` values. This has been fixed in pypdf 6.10.1. As a workaround, one may apply the changes from the patch manually.

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 wrong large /Size values or object streams with wrong large /N values.

Patches

This has been fixed in pypdf==6.10.1.

Workarounds

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

NVD (es)

pypdf es una biblioteca PDF de Python puro, gratuita y de código abierto. Un atacante que utiliza una vulnerabilidad presente en versiones anteriores a la 6.10.1 puede crear un PDF que provoca tiempos de ejecución prolongados. Esto requiere flujos de referencias cruzadas con valores “/Size” grandes incorrectos o flujos de objetos con valores “/N” grandes incorrectos. Esto ha sido corregido en pypdf 6.10.1. Como solución alternativa, se pueden aplicar los cambios del parche manualmente.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-41168 changed 2026-04-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-jj6c-8h6c-hppx changed 2026-09-10CC-BY-4.0
NVDCVE-2026-41168 changed 2026-11-11Public domain
PyPA Advisory DatabasePYSEC-2026-3021 changed 2026-07-13CC-BY-4.0