Resource exhaustion in Spring AI - CVE-2026-59345
Published: November 20, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service in applications that process untrusted documents with Spring AI.
The vulnerability exists due to uncontrolled stack consumption during regular expression matching in ExtractedTextFormatter when processing text extracted from untrusted documents. A remote attacker can submit a crafted document to exhaust the processing thread's stack and terminate that thread.
Applications are affected when they process untrusted documents through TikaDocumentReader, PagePdfDocumentReader, or ParagraphPdfDocumentReader, regardless of file type.