Denial of service in Spring AI document readers via regex recursion
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA.
Summary
Spring AI versions from 2.0.0 before 2.0.2.1, from 1.1.0 before 1.1.10, from 1.0.0 before 1.0.11 and from 2.0.0 before 2.0.3 are affected. ExtractedTextFormatter collapses blank lines with a regular expression that recurses once per repetition, so a specially crafted document exhausts the thread's stack and raises an uncaught StackOverflowError. An attacker who can submit documents to an application that processes untrusted files through TikaDocumentReader, PagePdfDocumentReader or ParagraphPdfDocumentReader can crash the processing thread, and repeated submissions can degrade service for all users.
Written with Claude Haiku 5.5 from the sources below · 2026-12-02
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| VMware | Spring AI | 2.0.0 to before 2.0.2.1; 1.1.0 to before 1.1.10; 1.0.0 to before 1.0.11; 2.0.0 to before 2.0.3 | 2.0.2.1, 1.1.10, 1.0.11, 2.0.3 | Patch available | CNA |
- Spring AI VendorVMware Affected 2.0.0 to before 2.0.2.1; 1.1.0 to before 1.1.10; 1.0.0 to before 1.0.11; 2.0.0 to before 2.0.3 Fixed in 2.0.2.1, 1.1.10, 1.0.11, 2.0.3 Patch available CNA
Remediation
Upgrade Spring AI to 2.0.2.1 or 2.0.3, 1.1.10, or 1.0.11, matching the release line in use.
Written with Claude Haiku 5.5 from the sources below · 2026-12-02
- Fix · CNA Spring AI (Spring) Fixed in 2.0.2.1, 1.1.10, 1.0.11, 2.0.3
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
Spring AI 1.0.11, 1.1.10 and 2 more versions
9 records Highest priority Priority MEDIUM 7 MEDIUM, 2 LOW
Other records, highest priority first
- TI-2026-101993 Cross-user cache leak and poisoning in Spring AI Redis semantic cachePriority MEDIUM 54
- TI-2026-101956 Spring AI Typesense filter injection bypasses tenant isolationPriority MEDIUM 48
- TI-2026-101949 RediSearch query injection in Spring AI RedisVectorStore filtersPriority MEDIUM 48
Timeline
- 2026-12-02 Threatist record created from CVE-2026-59345
- 2026-12-02 Alias added: GHSA-9rpf-xhrg-8h45
References
More VMware vulnerabilities
- TI-2026-94633 Authentication bypass in VMware vCenter Directory Service KEVCVSS 3.1CRITICAL 9.8
- TI-2026-42442 Directory traversal in VMware vCenter Syslog server KEVCVSS 3.1CRITICAL 9.8
- TI-2024-26040 VMware vCenter Server privilege escalation to root via network packet KEVCVSS 3.1CRITICAL 9.8
- TI-2024-26039 Heap overflow in VMware vCenter Server lets attackers run code KEVCVSS 3.1CRITICAL 9.8
- TI-2024-24610 Heap overflow in VMware vCenter Server DCERPC implementation KEVCVSS 3.1CRITICAL 9.8
- TI-2023-16914 Out-of-bounds write in VMware vCenter Server DCERPC implementation KEVCVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-59345 · CVE Program
- CVE-2026-59345 · NVD
- GHSA-9rpf-xhrg-8h45 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences