CVE-2023-36810
Quadratic runtime with malformed PDF missing xref marker in pypdf
Reported by github_m · Published June 30, 2023
PyPDF2 is fixed in 1.27.9 and 1.27.8 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| PyPDF2 | PyPI | 1.27.9, 1.27.8 |
| pypdf | py-pdf | 1.27.8 |
| pypdf | pypdf_project | 1.27.8 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| py-pdf | pypdf | < 1.27.9 |
| PyPI | PyPDF2 | 0 |
| py-pdf | pypdf | 0 |
Timeline
- Jun 30, 2023 CVE Published
- Jul 1, 2023 EPSS Score (30 in total, the first dated here)
- Feb 18, 2025 CVE Updated
- Feb 11, 2026 Security Advisory
- Aug 7, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-36810
vulnetix vdb fixes CVE-2023-36810
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-36810/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/py-pdf/pypdf/security/advisories/GHSA-jrm6-h9cq-8gqw x_refsource_CONFIRM
- https://github.com/py-pdf/pypdf/issues/582 x_refsource_MISC
- https://github.com/py-pdf/pypdf/pull/808 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2023-36810 advisory