CVE-2023-36810
JSON

6.2medium

Quadratic runtime with malformed PDF missing xref marker in pypdf

Severity
6.2medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.63% (higher than 51% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-jrm6-h9cq-8gqwPYSEC-2026-1837

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.

Affected

Product or packageVersionsReported by
py-pdf pypdf< 1.27.9, up to 1.27.8CVE List, NVD
pypdf2 (PyPI)before 1.27.9GitHub Advisory Database, PyPA Advisory Database

All scores

GitHub_M6.2medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub6.2medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
PyPA Advisory Database6.2medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-407

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

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.

Patches

https://github.com/py-pdf/pypdf/pull/808

Workarounds

Is there a way for users to fix or remediate the vulnerability without upgrading?

References

References

Sources

SourceRecordLicence
CVE ListCVE-2023-36810 changed 2025-02-13CVE Terms of Use
GitHub Advisory DatabaseGHSA-jrm6-h9cq-8gqw changed 2026-07-07CC-BY-4.0
NVDCVE-2023-36810 changed 2026-11-02Public domain
PyPA Advisory DatabasePYSEC-2026-1837 changed 2026-07-07CC-BY-4.0