home / blog
2026-11-23 · medium
CVE-2026-59340: DoS Vulnerability in PDF Readers
Denial of service vulnerability in PDF readers due to excessive memory allocation during file processing.

CVE-2026-59340 is a denial of service vulnerability affecting PagePdfDocumentReader and ParagraphPdfDocumentReader when processing untrusted PDF files. The vulnerability lies in the text extraction logic that reconstructs layout from glyph positions, where there is a limit on memory allocation for any single computed gap, but no cumulative limit across an entire page. Specially crafted PDFs can exploit this to force excessive memory allocation during processing, resulting in an OutOfMemoryError.
The severity of the vulnerability is classified as medium with a CVSS score of 6.5. The issue was officially published on November 23, 2026, in the National Vulnerability Database. Signals on GitHub indicate that there are public repositories that claim to contain exploits for this vulnerability, suggesting potential active exploitation.
As defenders, it's crucial to apply patches as soon as they become available for this vulnerability. Applications that process PDFs from untrusted sources, such as document uploads, email attachment processing, RAG ingestion, or web crawling, require particular attention. Until patches are applied, consider implementing additional controls on incoming PDF files, such as maximum file size limits or preliminary analysis before full processing.
At a glance
- What
- Denial of service vulnerability in PagePdfDocumentReader and ParagraphPdfDocumentReader when processing untrusted PDF input.
- Severity
- Medium (CVSS 6.5)
- Affected versions
- Not reported
- Fix
- Not reported (but GitHub signals indicate a fix is available)
- Status
- Published on 2026-11-23
- Action
- Apply patches as soon as available, verify applications that process PDFs from untrusted sources.
Sources: NVD, CVE-2026-59340