PagePdfDocumentReader and ParagraphPdfDocumentReader are vulnerable to a denial of service when processing untrusted PDF input.
The underlying text extraction logic reconstructs layout from a PDF's glyph positions and limits how much memory can be allocated for any single computed gap, but does not limit the cumulative allocation across an entire page.
A specially crafted PDF can exploit this to force excessive memory allocation during processing, resulting in OutOfMemoryError.
Depending on JVM configuration, this can cause request failures with degraded service under repeated exploitation, or immediate JVM termination when ExitOnOutOfMemoryError options are used.
Any application that processes PDFs from untrusted sources (document upload, email attachment processing, RAG ingestion, web crawling) using either affected reader is impacted.
References
| Link | Resource |
|---|---|
| https://spring.io/security/cve-2026-59340 |
Configurations
No configuration.
History
24 Nov 2026, 15:17
| Type | Values Removed | Values Added |
|---|---|---|
| CWE | CWE-770 |
23 Nov 2026, 11:17
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-11-23 11:17
Updated : 2026-11-24 15:17
NVD link : CVE-2026-59340
Mitre link : CVE-2026-59340
CVE.ORG link : CVE-2026-59340
JSON object : View
Products Affected
No product.
CWE
CWE-770
Allocation of Resources Without Limits or Throttling
