CVEfocus › CVE database › CVE-2023-36810

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

CVSS 6.2 MediumEPSS 0.7% (higher than 49% of CVEs)Published 2023-06-30Updated 2025-02-13Assigner: GitHub_M

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.

CWE-407

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

4Fixed
2Fix pending

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04pypdf2Fixed1.26.0-4ubuntu0.22.04.2UBUNTU-CVE-2023-36810
Ubuntu 20.04pypdf2Fixed1.26.0-3ubuntu1.20.04.2UBUNTU-CVE-2023-36810
Ubuntu 18.04pypdf2Fix pending1.26.0-2ubuntu0.1~esm2 (Ubuntu Pro)UBUNTU-CVE-2023-36810
Ubuntu 16.04pypdf2Fix pending1.25.1-1ubuntu0.1~esm2 (Ubuntu Pro)UBUNTU-CVE-2023-36810
Debian 12pypdf2Fixed1.27.9-1DEBIAN-CVE-2023-36810
PyPI librarypypdf2Fixed1.27.9PYSEC-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.

References

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.