VDB

CVE-2023-36810

CVE-2023-36810 PUBLISHED CVSS 6.2 MEDIUM

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.

PackageEcosystemFixed in
PyPDF2PyPI1.27.9, 1.27.8
pypdfpy-pdf1.27.8
pypdfpypdf_project1.27.8

Risk scores

CVSS 3.1
6.2
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
py-pdfpypdf< 1.27.9
PyPIPyPDF20
py-pdfpypdf0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›