Allocation of Resources Without Limits or Throttling in Spring AI - CVE-2026-59340
Published: November 20, 2026
Vulnerability details
The vulnerability allows a remote user to cause a denial of service by exhausting JVM memory.
The vulnerability exists due to a missing limit on cumulative per-page memory allocation in the text extraction logic shared by PagePdfDocumentReader and ParagraphPdfDocumentReader when processing untrusted PDFs. A remote user can supply a crafted PDF to exhaust JVM memory and disrupt service.
If ExitOnOutOfMemoryError is enabled, the JVM can terminate immediately instead of continuing to run with request failures.