CVE-2026-22690

pypdf has possible long runtimes for missing /Root object with large /Size values

Published Jan 10, 2026 CVSS 4.0 · 2.7 Low EPSS < 1% KEV · Not listed
Description
pypdf is a free and open-source pure-python PDF library. Prior to version 6.6.0, pypdf has possible long runtimes for missing /Root object with large /Size values. An attacker who uses this vulnerability can craft a PDF which leads to possibly long runtimes for actually invalid files. This can be achieved by omitting the /Root entry in the trailer, while using a rather large /Size value. Only the non-strict reading mode is affected. This issue has been patched in version 6.6.0.

Analysis

AI-generated

Technical impact

A PDF parsing flaw in the open‑source pypdf library allows an attacker to craft a malicious PDF that, when processed in non‑strict mode, can cause unusually long runtimes by omitting the /Root entry while specifying a very large /Size value. The resulting delay does not compromise confidentiality or integrity, but it can consume significant CPU resources, effectively leading to a denial‑of‑service condition for the process or application using the library. The weakness maps to CWE‑400, which describes unbounded resource usage.

Affected Systems

The vulnerability affects the pypdf project, specifically versions prior to 6.6.0. All installations that rely on the non‑strict reading mode of pypdf before this release are susceptible. The issue was addressed in release 6.6.0 and later.

Risk and Exploitability

The CVSS score of 2.7 indicates a low severity, and the EPSS score of less than 1% suggests a very low probability of exploitation in the wild. The attack vector requires an attacker to supply a crafted PDF file to the vulnerable process; no privileged access or additional conditions are specified in the description. Because the issue is limited to non‑strict mode, systems that have not configured strict parsing may remain at risk. The vulnerability is not listed in the CISA KEV catalog, further indicating its limited impact profile.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade pypdf to version 6.6.0 or later
  • Configure the library to use strict reading mode to avoid the long runtime scenario
  • Validate or sanitize PDF inputs before passing them to pypdf

Generated by OpenCVE AI on April 18, 2026 at 07:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-4xc4-762w-m6cg pypdf has possible long runtimes for missing /Root object with large /Size values
History
Type Values Removed Values Added
CPEs cpe:2.3:a:pypdf_project:pypdf:*:*:*:*:*:*:*:* cpe:2.3:a:py-pdf:pypdf:*:*:*:*:*:*:*:*
Vendors & Products Pypdf Project
Pypdf Project pypdf
Type Values Removed Values Added
First Time appeared Pypdf Project
Pypdf Project pypdf
CPEs cpe:2.3:a:pypdf_project:pypdf:*:*:*:*:*:*:*:*
Vendors & Products Pypdf Project
Pypdf Project pypdf
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Py-pdf
Py-pdf pypdf
Vendors & Products Py-pdf
Py-pdf pypdf
Type Values Removed Values Added
Description pypdf is a free and open-source pure-python PDF library. Prior to version 6.6.0, pypdf has possible long runtimes for missing /Root object with large /Size values. An attacker who uses this vulnerability can craft a PDF which leads to possibly long runtimes for actually invalid files. This can be achieved by omitting the /Root entry in the trailer, while using a rather large /Size value. Only the non-strict reading mode is affected. This issue has been patched in version 6.6.0.
Title pypdf has possible long runtimes for missing /Root object with large /Size values
Weaknesses CWE-400
References
Metrics cvssV4_0

{'score': 2.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U'}

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jan 12, 2026, 5:07 PM
Reserved
Jan 8, 2026, 7:23 PM
Status
Analyzed
Published
Jan 10, 2026, 5:16 AM
Modified
Nov 2, 2026, 4:06 PM
Severity
Moderate
Public date
Jan 10, 2026, 4:41 AM