CVE-2026-22690: Pypdf Unbounded Root Recovery Loop

The application blindly trusts the user-supplied `/Size` value from the PDF trailer to determine the upper bound of a loop during `/Root` object recovery without enforcing a safe limit on the number of objects to check, leading to Denial of Service via prolonged CPU and resource usage.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-22690-pypdf-unbounded-root-recovery-loop --engine opengrep

Description

The application blindly trusts the user-supplied `/Size` value from the PDF trailer to determine the upper bound of a loop during `/Root` object recovery without enforcing a safe limit on the number of objects to check, leading to Denial of Service via prolonged CPU and resource usage.