Intel

AIKIDO-2026-111085

pypdf is vulnerable to Denial of Service (DoS)

Denial of Service (DoS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Today

65

Medium Risk

This Affects:

PYTHONpypdf
0.0.1 - 6.13.1
Fixed in 6.13.2
Are you affected? Scan for Free

TL;DR

The _flatten routine walks /Pages trees when a PdfReader builds its page list. A crafted PDF can create a multi-hop /Pages cycle that bypasses the existing single-parent check and drives unbounded recursion. Before the fix, accessing reader.pages could raise RecursionError or, under a partially consumed C stack, terminate the worker process with SIGSEGV. The fix tracks visited /Pages nodes during traversal and raises PdfReadError when a cycle is detected.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and parse untrusted PDFs with operations that enumerate pages, such as accessing reader.pages.

Background info

pypdf is vulnerable to Denial of Service (DoS) in versions 0.0.1 - 6.13.1.

How to fix this

Upgrade the pypdf library to the patch version.