{"id":"CVE-2023-36810","published":"2023-06-30T18:43:12Z","modified":"2025-02-13T16:56:24Z","title":"Quadratic runtime with malformed PDF missing xref marker in pypdf","vendor":"py-pdf","product":"pypdf","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.2,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0063,"percentile":0.51145,"provenance":"source"},"cwes":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"references":[{"url":"https://github.com/py-pdf/pypdf/security/advisories/GHSA-jrm6-h9cq-8gqw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/py-pdf/pypdf/issues/582","tags":["x_refsource_MISC"]},{"url":"https://github.com/py-pdf/pypdf/pull/808","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/07/msg00019.html","tags":[]}],"priority":{"score":14.6,"factors":[{"name":"EPSS percentile","points":10.23},{"name":"CVSS severity","points":4.34}]},"vendorSlug":"py-pdf","affectedVersions":[{"vendor":"py-pdf","product":"pypdf","versions":["< 1.27.9"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-11-04T21:19:20.245358Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"PyPDF2","vulnerableRanges":["<1.27.9"],"patched":["1.27.9"],"from":["GHSA-jrm6-h9cq-8gqw","PYSEC-2026-1837"],"provenance":"source"}],"summary":{"text":"The flaw is an inefficient algorithm (quadratic runtime) in pypdf, a pure-Python PDF library, triggered when parsing a PDF with a malformed or missing xref marker. An attacker who can supply a crafted PDF to a local process using pypdf, with no authentication or user interaction required, can cause the process to run for an excessively long time, pinning a CPU core at 100% and blocking it, though memory usage is unaffected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:36:18Z"},"euvd":{"id":"EUVD-2023-1837","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-24859","published":"2022-04-18","fixed":"1.27.5","kev":false,"link":{"from":"CVE-2022-24859","to":"CVE-2023-36810","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:PyPDF2","fromFixed":"1.27.5","toFixed":"1.27.9","daysApart":438}]}},{"cve":"CVE-2023-36810","published":"2023-06-30","fixed":"1.27.9","kev":false},{"cve":"CVE-2023-36807","published":"2023-06-30","fixed":"2.10.6","kev":false},{"cve":"CVE-2023-36464","published":"2023-06-27","fixed":"3.9.0","kev":false}],"package":"PyPI:PyPDF2"}}