# CVE-2023-36810: Quadratic runtime with malformed PDF missing xref marker in pypdf

- Severity: Medium 6.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.63%, higher than 51% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2023-06-30T18:43:12.801Z
- Modified: 2026-11-02T16:06:04.477Z
- Also known as: GHSA-jrm6-h9cq-8gqw, PYSEC-2026-1837
- Weaknesses: CWE-407
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- py-pdf pypdf: < 1.27.9; up to 1.27.8
- pypdf2 (PyPI): before 1.27.9

## Every score

- GitHub_M: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## 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

- CVE List: [CVE-2023-36810](https://www.cve.org/CVERecord?id=CVE-2023-36810), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-jrm6-h9cq-8gqw](https://github.com/advisories/GHSA-jrm6-h9cq-8gqw), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2023-36810](https://nvd.nist.gov/vuln/detail/CVE-2023-36810), Public domain, modified 2026-11-02
- PyPA Advisory Database: [PYSEC-2026-1837](https://osv.dev/vulnerability/PYSEC-2026-1837), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2023-36810 · Whole record: https://cve.day/CVE-2023-36810.json · Rebuilt by cve.day 2026-11-25T22:58:25.343Z
