Memory Consumption Vulnerability in pypdf Library from py-pdf
CVE-2026-49461
6.9MEDIUM
What is CVE-2026-49461?
The pypdf library, a popular pure-Python tool for handling PDF files, is vulnerable to a memory consumption issue affecting versions prior to 6.12.2. An attacker can exploit this vulnerability by crafting a malicious PDF that requires excessive memory usage during text extraction. This occurs specifically with PDFs containing form XObjects that reference themselves. Upgrading to version 6.12.2 resolves this concern, ensuring safer handling of PDFs.
Affected Version(s)
pypdf < 6.12.2
