pypdf Cross-Reference Stream Vulnerability Leading to Denial-of-Service

Vulnerability

A denial-of-service vulnerability has been identified in the pypdf library, affecting versions prior to 6.10.1. This vulnerability allows an attacker to craft a PDF that causes prolonged processing times. The issue arises from cross-reference streams containing incorrect large '/Size' values or object streams with erroneous large '/N' values.

Impact

Exploitation of this vulnerability leads to excessive processing times when handling certain PDF files, causing potential application slowdowns or unresponsiveness.

Reproduction

The vulnerability can be reproduced by creating a PDF file that includes cross-reference streams with artificially inflated '/Size' values or object streams with exaggerated '/N' values. When this crafted PDF is processed using a vulnerable version of the pypdf library, it will result in extended runtime delays.

Remediation

Users can upgrade to pypdf version 6.10.1 or later to address this vulnerability. If an immediate upgrade is not possible, the changes from the official patch can be applied manually.

Added: Apr 22, 2026, 9:19 PM
Updated: Apr 22, 2026, 9:19 PM

Vulnerability Rating

Custom Algorithm
spread
5.4
impact
0.6
exploitability
5.7
remediation
7.7
relevance
6.4
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.