CVE-2023-36810Quadratic runtime with malformed PDF missing xref marker in pypdf
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.
What to do
Fixed builds are available from Debian, PyPI, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | pypdf2 | Fixed | 1.26.0-4ubuntu0.22.04.2 | UBUNTU-CVE-2023-36810 |
| Ubuntu 20.04 | pypdf2 | Fixed | 1.26.0-3ubuntu1.20.04.2 | UBUNTU-CVE-2023-36810 |
| Ubuntu 18.04 | pypdf2 | Fix pending | 1.26.0-2ubuntu0.1~esm2 (Ubuntu Pro) | UBUNTU-CVE-2023-36810 |
| Ubuntu 16.04 | pypdf2 | Fix pending | 1.25.1-1ubuntu0.1~esm2 (Ubuntu Pro) | UBUNTU-CVE-2023-36810 |
| Debian 12 | pypdf2 | Fixed | 1.27.9-1 | DEBIAN-CVE-2023-36810 |
| PyPI library | pypdf2 | Fixed | 1.27.9 | PYSEC-2026-1837 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- py-pdf pypdf: affected: < 1.27.9
References
- https://github.com/py-pdf/pypdf/security/advisories/GHSA-jrm6-h9cq-8gqw
- https://github.com/py-pdf/pypdf/issues/582
- https://github.com/py-pdf/pypdf/pull/808
- https://lists.debian.org/debian-lts-announce/2023/07/msg00019.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.