CVE-2026-59345Spring AI Uncontrolled Resource Consumption
Spring
Vulnerability Summary
Denial of Service via regex-recursion. ExtractedTextFormatter is vulnerable to a denial of service when processing untrusted text extracted from documents. trimAdjacentBlankLines() and alignToLeft() collapse runs of blank lines using regular expressions with a quantified group, and Java's backtracking regex engine recurses one stack frame per repetition of that group. A specially crafted document can exploit this to exhaust the calling thread's stack, resulting in an uncaught StackOverflowError. This crashes the thread processing the document; repeated submissions against a bounded worker pool can degrade or deny service to all users, even though any single crash is thread-local rather than JVM-wide. Any application that processes documents from untrusted sources (document upload, email attachment processing, RAG ingestion, web crawling) through TikaDocumentReader, PagePdfDocumentReader, or ParagraphPdfDocumentReader is impacted, regardless of file type. Affected artifact: org.springframework.ai:spring-ai-commons.
CVSS v3.1 Base Metrics — Score 7.5 (HIGH)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityNone
IntegrityNone
AvailabilityHigh
Affected & Patched Versions
- Spring AI 2.0.0 through 2.0.2
- Spring AI 1.1.0 through 1.1.9
- Spring AI 1.0.0 through 1.0.10
- Spring AI 2.0.3 (open source)
- Spring AI 2.0.2.1 (commercial support only)
- Spring AI 1.1.10 (commercial support only)
- Spring AI 1.0.11 (commercial support only)
What to do
Plan remediation soon. No exploitation is confirmed yet, but the severity is high.
- Check whether you run Spring AI and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Nov 19, 2026Published
- Nov 19, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new Spring AI CVEsYou are reading CVE-2026-59345. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsRelated Coverage
More Spring AI CVEs
External References
- Vendor Advisoryhttps://spring.io/security/cve-2026-59345
Data last checked: Nov 20, 2026 05:01 UTC