6.2medium
Quadratic runtime with malformed PDF missing xref marker in pypdf
- Severity
- 6.2medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.63% (higher than 51% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-jrm6-h9cq-8gqwPYSEC-2026-1837
Description
pypdf is a pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. An attacker who uses this vulnerability can craft a PDF which leads to unexpected long runtime. This quadratic runtime blocks the current process and can utilize a single core of the CPU by 100%. It does not affect memory usage. This issue has been addressed in PR 808 and versions from 1.27.9 include this fix. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| py-pdf pypdf | < 1.27.9, up to 1.27.8 | CVE List, NVD |
| pypdf2 (PyPI) | before 1.27.9 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| GitHub_M | 6.2medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 6.2medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| PyPA Advisory Database | 6.2medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
pypdf is a pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. An attacker who uses this vulnerability can craft a PDF which leads to unexpected long runtime. This quadratic runtime blocks the current process and can utilize a single core of the CPU by 100%. It does not affect memory usage. This issue has been addressed in PR 808 and versions from 1.27.9 include this fix. Users are advised to upgrade. There are no known workarounds for this vulnerability.
GitHub Advisory Database
Impact
An attacker who uses this vulnerability can craft a PDF which leads to unexpected long runtime. This quadratic runtime blocks the current process and can utilize a single core of the CPU by 100%. It does not affect memory usage.
Patches
https://github.com/py-pdf/pypdf/pull/808
Workarounds
Is there a way for users to fix or remediate the vulnerability without upgrading?
References
References
| https://github.com/py-pdf/pypdf/security/advisories/GHSA-jrm6-h9cq-8gqw | exploit, patch, vendor-advisory, web | |
| https://github.com/py-pdf/pypdf/issues/582 | exploit, issue-tracking, vendor-advisory, web | |
| https://github.com/py-pdf/pypdf/pull/808 | patch, web | |
| https://lists.debian.org/debian-lts-announce/2023/07/msg00019.html | web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-36810 | advisory | |
| https://github.com/py-pdf/pypdf/commit/c6c56f550bb384e05f0139c796ba1308837d6373 | fix, web | |
| https://github.com/py-pdf/pypdf | package | |
| https://pypi.org/project/pypdf2 | package | |
| https://github.com/advisories/GHSA-jrm6-h9cq-8gqw | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-36810 changed 2025-02-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jrm6-h9cq-8gqw changed 2026-07-07 | CC-BY-4.0 |
| NVD | CVE-2023-36810 changed 2026-11-02 | Public domain |
| PyPA Advisory Database | PYSEC-2026-1837 changed 2026-07-07 | CC-BY-4.0 |