CVE-2026-59345 — Spring AI
One of 10 Spring AI vulnerabilities published together by NVD: our article covers all of them.
JavaAIEmailVulnerabilitiesSummary
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.
Severity breakdown
High · 7.5
An attacker without an account can exploit this over the network, without any user action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Login needed
- no
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- high on availability, none on confidentiality and integrity
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| Spring AI | ≥ 2.0.0, < 2.0.2.1 | 2.0.2.1 |
| ≥ 1.1.0, < 1.1.10 | 1.1.10 | |
| ≥ 1.0.0, < 1.0.11 | 1.0.11 | |
| ≥ 2.0.0, < 2.0.3 | 2.0.3 |
References by type
Other references
Affected
- Spring AI
What to do
- Check whether you run an affected product or version and apply the vendor's update or mitigation.
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-59345?
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.
How severe is CVE-2026-59345?
CVE-2026-59345 has a CVSS 3.1 base score of 7.5 (high), from the CNA (vmware.com). An attacker without an account can exploit this over the network, without any user action.
Is CVE-2026-59345 being exploited?
Not as far as is known: CVE-2026-59345 is not in CISA's Known Exploited Vulnerabilities catalog as of December 2, 2026.
Which versions are affected by CVE-2026-59345?
Spring AI ≥ 2.0.0, < 2.0.2.1 (fixed in 2.0.2.1); Spring AI ≥ 1.1.0, < 1.1.10 (fixed in 1.1.10); Spring AI ≥ 1.0.0, < 1.0.11 (fixed in 1.0.11); Spring AI ≥ 2.0.0, < 2.0.3 (fixed in 2.0.3).
How do I fix CVE-2026-59345?
Update to a fixed release: Spring AI 2.0.2.1; Spring AI 1.1.10; Spring AI 1.0.11.
Timeline & sources
References
Related vulnerabilities & news
- Weekly Roundup: California Sues OpenAI, Java4Shell Hits Enterprise Apps
- Critical Java4Shell Flaw Patched for Specific Systems
- Critical Java Flaw Allows Server Takeover
- Wren:AM Legacy JATO Interface Deserialization Flaw (CVE-2026-142005) Allows Unauthenticated Remote Code Execution Risk
- CVE-2026-59444 — Spring Integration