GHSA-JJ6C-8H6C-HPPX: Uncontrolled Resource Consumption in pypdf via Malformed PDF Streams
Vulnerability ID: GHSA-JJ6C-8H6C-HPPX
CVSS Score: 5.5
Published: 2026-04-15
The pypdf library prior to version 6.10.1 contains a moderate-severity vulnerability related to the handling of cross-reference (xref) and object streams. The library fails to adequately validate the sizes of these streams against supplied metadata, leading to excessive iteration and uncontrolled resource consumption when parsing maliciously crafted PDF documents.
TL;DR
pypdf versions prior to 6.10.1 are vulnerable to Denial of Service (DoS) due to inadequate validation of xref and object stream sizes, allowing crafted PDFs to trigger unbounded resource consumption.
⚠️ Exploit Status: POC
Technical Details
Vulnerability Type: Uncontrolled Resource Consumption
CWE IDs: CWE-400, CWE-834
Attack Vector: Local / Remote via File Upload
Impact: Denial of Service (DoS)
Discussion
Take the lead—comment now
Lead the way—your insights can inspire others.