PagePdfDocumentReader and ParagraphPdfDocumentReader are vulnerable to a denial of service when processing untrusted PDF input.
- CVSS
- 6.5Medium
- Chance of exploitation (EPSS)
- 0.51%
- Published
- Nov 23, 2026
- In the news
- Not yet
What to do
A moderate security flaw in Spring AI that can be attacked over the network by someone with an account. No attacks are reported yet; it can go in your normal patch cycle.
Action: Check the vendor's advisory in the references and apply updates as soon as they are available.
Fixed in: 1.0.11, 1.1.10, 2.0.2.1, 2.0.3
Affected versions
- Spring AI
- 1.0.0 to before 1.0.11; 1.1.0 to before 1.1.10; 2.0.0 to before 2.0.2.1; 2.0.0 to before 2.0.3
Description
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.
Affected products
Get alerts for these →Timeline 1
Latest change: CVE-2026-59340 published (CVSS 6.5) (Nov 23, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Mon, Nov 23, 2026
- CVECVE-2026-59340 published (CVSS 6.5)CVE Program · 11:17 UTC
References 1
- spring.io /security/cve-2026-59340