Resource exhaustion in Spring AI - CVE-2026-59345

 

Resource exhaustion in Spring AI - CVE-2026-59345

Published: November 20, 2026


Vulnerability identifier: #VU168598
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-59345
CWE-ID: CWE-400
Exploitation vector: Remote access
Exploit availability: No public exploit available

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.


Affected software

Spring AI

How to mitigate CVE-2026-59345

Install security update from vendor's website.

Spring AI - addressed in versions 1.0.11, 1.1.10, 2.0.2.1, 2.0.3

External References

Related Security Bulletins