Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. PyPDF2
  4. ›
  5. CVE-2023-36810

CVE-2023-36810: Inefficient Algorithmic Complexity

June 30, 2023 (updated July 14, 2023)

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.

References

  • github.com/py-pdf/pypdf/issues/582
  • github.com/py-pdf/pypdf/pull/808
  • github.com/py-pdf/pypdf/security/advisories/GHSA-jrm6-h9cq-8gqw
  • nvd.nist.gov/vuln/detail/CVE-2023-36810

Code Behaviors & Features

Detect and mitigate CVE-2023-36810 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 1.27.8

Fixed versions

  • 1.27.9

Solution

Upgrade to version 1.27.9 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-407: Inefficient Algorithmic Complexity

Source file

pypi/PyPDF2/CVE-2023-36810.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:16 +0000.