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 package | Versions | Reported by |
|---|---|---|
| py-pdf pypdf | < 6.10.1, before 6.10.1 | CVE List, NVD |
| pypdf (PyPI) | before 6.10.1 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| GitHub_M | 6.9medium CVSS:4.0 | 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 |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| PyPA Advisory Database | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| PyPA Advisory Database | Not scored CVSS:4.0 | CVSS: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
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
| https://github.com/py-pdf/pypdf/security/advisories/GHSA-jj6c-8h6c-hppx | mitigation, patch, vendor-advisory, web | |
| https://github.com/py-pdf/pypdf/pull/3733 | issue-tracking, patch, web | |
| https://github.com/py-pdf/pypdf/commit/62338e9d36419cf193ccec7331784f45df1d70b3 | patch, web | |
| https://github.com/py-pdf/pypdf/releases/tag/6.10.1 | product, release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-41168 | advisory | |
| https://github.com/py-pdf/pypdf | package | |
| https://pypi.org/project/pypdf | package | |
| https://github.com/advisories/GHSA-jj6c-8h6c-hppx | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-41168 changed 2026-04-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jj6c-8h6c-hppx changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-41168 changed 2026-11-11 | Public domain |
| PyPA Advisory Database | PYSEC-2026-3021 changed 2026-07-13 | CC-BY-4.0 |