CVE-2026-59340: Spring Ai
Medium severity, CVSS 6.5. EPSS: 0.4% probability of exploitation activity in the next 30 days.
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.
What to do
The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.
- Spring Ai, from 2.0.0, before 2.0.3: fixed in 2.0.3
- Spring Ai, from 1.1.0, before 1.1.10: fixed in 1.1.10
- Spring Ai, from 1.0.0, before 1.0.11: fixed in 1.0.11
- Spring Ai, from 2.0.0, before 2.0.2.1: fixed in 2.0.2.1
Affected products
- Spring Spring Ai: from 2.0.0, before 2.0.3 (fixed in 2.0.3); from 1.1.0, before 1.1.10 (fixed in 1.1.10); from 1.0.0, before 1.0.11 (fixed in 1.0.11); from 2.0.0, before 2.0.2.1 (fixed in 2.0.2.1)
Published 2026-11-23. Last modified 2026-11-24.