Vulnerability · Published Jun 30, 2023 · Assigned by GitHub_M
CVE-2023-36810Quadratic runtime with malformed PDF missing xref marker in pypdf
Medium 6.2
In plain English
A medium-severity security flaw in pypdf from py-pdf. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 50% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | pypdf2 | 1.27.9-1 | DEBIAN-CVE-2023-36810 |
| PyPI | pypdf2 | 1.27.9 | GHSA-jrm6-h9cq-8gqw |
| PyPI | pypdf2 | 1.27.9 | PYSEC-2026-1837 |
| Ubuntu:22.04:LTS | pypdf2 | 1.26.0-4ubuntu0.22.04.2 | USN-6280-1 |
| Ubuntu:22.04:LTS | pypdf2 | 1.26.0-4ubuntu0.22.04.2 | UBUNTU-CVE-2023-36810 |
Affected products (as reported)
Weakness: CWE-407 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H