CVE-2023-36810: py-pdf pypdf Inefficient Algorithmic Complexity
Vulnerability summary
CVE-2023-36810 is a medium (CVSS 6.5) Inefficient Algorithmic Complexity vulnerability in py-pdf pypdf. EPSS estimates a 0.63% chance of exploitation in the next 30 days, higher than 49.2% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 30-06-2023PublishedVulnerability first disclosed.
- 13-02-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- CVE.orgCNA6.2MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HDiffers
- OSV · PypiEcosystem advisory · calculated6.2MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HDiffers
- OSV · UbuntuEcosystem advisory · calculated6.2MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HDiffers
- OSV · DebianEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.63%
Chance of exploitation in the next 30 days
Percentile
49%
Versus all other CVEs
30-day change
0.00 pp
From 0.63% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundPypdf
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Mageia2 products
- python-pypdf2< 1.27.9-1.mga8
- python-pypdf2< 1.27.9-1.mga9
Debian1 product
- pypdf2< 1.26.0-2+deb10u2 | < 1.27.9-1
Py-pdf1 product
- pypdf< 1.27.9
Pypdf_project1 product
- pypdf≤ 1.27.8
PyPI1 product
- pypdf2< 1.27.9
Ubuntu1 product
- pypdf2< 1.25.1-1ubuntu0.1~esm2 | < 1.26.0-2ubuntu0.1~esm2 | < 1.26.0-3ubuntu1.20.04.2 | < 1.26.0-4ubuntu0.22.04.2
6 vendors · 7 products
References
16 links- github.com/py-pdf/pypdf/security/advisories/GHSA-jrm6-h9cq-8gqwX Refsource CONFIRMWEBREPORTExploitPatchVendor Advisory
- github.com/py-pdf/pypdfPACKAGE
Show all 16 references
- pypi.org/project/pypdf2PACKAGE