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.

Severity (CVSS 3.1)6.2Medium
Exploit odds (30 days)0.6%top 49.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12pypdf21.27.9-1DEBIAN-CVE-2023-36810
PyPIpypdf21.27.9GHSA-jrm6-h9cq-8gqw
PyPIpypdf21.27.9PYSEC-2026-1837
Ubuntu:22.04:LTSpypdf21.26.0-4ubuntu0.22.04.2USN-6280-1
Ubuntu:22.04:LTSpypdf21.26.0-4ubuntu0.22.04.2UBUNTU-CVE-2023-36810

Affected products (as reported)

VendorProductVersions
py-pdf pypdf < 1.27.9

Weakness: CWE-407 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References