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 package | Versions | Reported by |
|---|---|---|
| py-pdf pypdf | < 6.12.0, before 6.12.0 | CVE List, NVD |
| pypdf (PyPI) | before 6.12.0 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| GitHub_M | 5.1medium CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
| GitHub | 3.3medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/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:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
| NVD | 3.3low CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L |
| PyPA Advisory Database | 3.3low CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/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:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
Classification
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
| https://github.com/py-pdf/pypdf/security/advisories/GHSA-248m-82v9-q6g6 | patch, vendor-advisory, web | |
| https://github.com/py-pdf/pypdf/pull/3791 | issue-tracking, patch, web | |
| https://github.com/py-pdf/pypdf/releases/tag/6.12.0 | release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-48156 | advisory | |
| https://github.com/py-pdf/pypdf/commit/507d7c9aa6ea83389b954b9c3c0c528fe5d5da70 | web | |
| https://github.com/py-pdf/pypdf | package | |
| https://pypi.org/project/pypdf | package | |
| https://github.com/advisories/GHSA-248m-82v9-q6g6 | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-48156 changed 2026-05-30 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-248m-82v9-q6g6 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-48156 changed 2026-11-02 | Public domain |
| PyPA Advisory Database | PYSEC-2026-3004 changed 2026-07-13 | CC-BY-4.0 |