Intel

AIKIDO-2026-10974

pikepdf is vulnerable to Denial of Service (DoS)

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

59

Medium Risk

This Affects:

PYTHONpikepdf
10.6.0 - 10.7.1
Fixed in 10.7.2
Are you affected? Scan for Free

TL;DR

The pikepdf C++ extension uses unchecked nanobind casts when handling Python objects passed to Pdf.save(encryption=...) and when retaining token filters via the private Pdf._token_filter_refs list in Page.add_content_token_filter(). Passing a non-dict encryption value or clobbering _token_filter_refs with a non-list causes py::borrow to reinterpret memory as the wrong type and can segfault the interpreter instead of raising an exception. Affected applications that forward untrusted values into these APIs can crash worker processes and lose availability. The patch validates object types before borrowing and raises TypeError or resets _token_filter_refs to a safe list.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

pikepdf is vulnerable to Denial of Service (DoS) in versions 10.6.0 - 10.7.1.

How to fix this

Upgrade the pikepdf library to the patch version.