Denial of servicein Spring AI.
Proof of concept public (GitHub).
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.
- Upgrade Spring AI to 1.0.11, 1.1.10, 2.0.2.1, 2.0.3 or later, whichever matches your release line.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 4 Jul 2026CVE ID reserved by vmware.
- 23 Nov 2026Published in the CVE List.
- 23 Nov 2026First public proof of concept on GitHub.
- 24 Nov 2026CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation none.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other AI vulnerabilities
Same weakness: Allocation without limits
Patchminder. CVE-2026-59340: Denial of service in Spring AI. https://patchminder.com/cve/cve-2026-59340/ (accessed 5 December 2026).