Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted document to ingestion endpoint
-
DeliveryReader extracts untrusted text
-
ExploitBlank-line runs trigger backtracking regex recursion
-
ExecutionStack exhausted, StackOverflowError crashes worker thread
-
PersistRepeat to deplete bounded worker pool
-
ImpactService degraded or denied for all users
Vulnerability Assessment
| Exploitation Conditions | Exploitation requires that the application processes documents from untrusted sources (document upload, email attachment handling, RAG ingestion, or web crawling) through Spring AI's TikaDocumentReader, PagePdfDocumentReader, or ParagraphPdfDocumentReader - the text-extraction path that invokes ExtractedTextFormatter. The trigger is a document whose extracted text contains long runs of adjacent blank lines, which drive the backtracking regex in trimAdjacentBlankLines()/alignToLeft() into deep recursion. No authentication (PR:N) or user interaction (UI:N) is needed and it is file-type-agnostic. Limiting factors: the target must actually feed untrusted input through these specific readers; a single crash is thread-local rather than JVM-wide, so durable denial of service requires repeated submissions against a bounded worker pool, and deployments with large pools, input size limits, or resilient worker restart will experience reduced impact. Affected versions: Spring AI 1.0.0-<1.0.11, 1.1.0-<1.1.10, 2.0.0-<2.0.2.1, and 2.0.0-<2.0.3; updating to a fixed release is the remediation per the vendor. |
| Impact | This is a genuine but bounded availability risk. The CVSS 7.5 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) indicates a remotely reachable, low-complexity, unauthenticated issue affecting availability only - no confidentiality or integrity impact, consistent with the described denial-of-service via regex backtracking StackOverflowError in ExtractedTextFormatter. The vuln.today Decision label is 'this_week', signaling prompt but not emergency remediation. No EPSS score, KEV listing, or SSVC fields were provided; absence of these is not evidence of safety but means widespread-exploitation probability cannot be quantified from this data. The input shows no confirmed proof-of-concept exploit code - only vendor (spring.io) and HeroDevs advisory references - so exploitation is currently theoretical in the public record. A nuance the CVSS A:H rating understates is that any single crash is thread-local, not JVM-wide (per the description); the denial-of-service materializes through repeated malicious submissions exhausting a bounded worker pool, so real impact depends on deployment (worker-pool sizing, input validation, restart behavior). Net: a real, patch-worthy priority for anyone ingesting untrusted documents through the affected readers, but not a drop-everything emergency absent evidence of active exploitation. |
| Exploit ScenarioDerived | An attacker submits a specially crafted document (e.g., via document upload, email attachment processing, or RAG ingestion) to an application that extracts text through TikaDocumentReader, PagePdfDocumentReader, or ParagraphPdfDocumentReader. The document contains long runs of blank lines that force Java's backtracking regex engine in trimAdjacentBlankLines()/alignToLeft() to recurse until the thread's stack is exhausted, throwing an uncaught StackOverflowError and crashing the processing thread. Repeated submissions against a bounded worker pool degrade or deny service to all users. No public exploit code is identified in the provided sources, and no authentication is required (PR:N). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Stack exhaustion in Spring AI's ExtractedTextFormatter lets unauthenticated remote attackers crash document-processing threads by supplying documents whose extracted text contains long runs of adjacent blank lines, which drives the backtracking regexes in trimAdjacentBlankLines() and alignToLeft() into deep recursion and raises an uncaught StackOverflowError. All Spring AI releases in the 1.0.0 to <1.0.11, 1.1.0 to <1.1.10, and 2.0.0 to <2.0.2.1/<2.0.3 ranges are affected, and the flaw is file-type agnostic - any application routing untrusted uploads, email attachments, RAG ingestion or crawled content through TikaDocumentReader, PagePdfDocumentReader or ParagraphPdfDocumentReader is exposed. Impact is bounded rather than total: an individual crash is thread-local, so sustained denial of service requires repeated submissions against a bounded worker pool, and no public exploit code was identified at time of analysis even though vendor fixes are already published.
RemediationAI
Vendor-released patches are available: upgrade to Spring AI 1.0.11 (or later) on the 1.0.x branch, 1.1.10 (or later) on the 1.1.x branch, and 2.0.2.1 or 2.0.3 (or later) on the 2.0.x branch, following the vendor advisory at https://spring.io/security/cve-2026-59345 for the exact per-branch fix mapping; the vendor positions updating as the remediation. Where upgrading cannot be scheduled immediately, reduce exposure by keeping untrusted documents away from the affected readers - do not route user uploads, email attachments, RAG ingestion or crawled content through TikaDocumentReader, PagePdfDocumentReader or ParagraphPdfDocumentReader until patched - accepting the functional loss of those ingestion paths. Enforcing extracted-text and input-size limits lowers the chance of a single document producing a long enough blank-line run to exhaust the thread stack, and running document processing on a worker pool with generous sizing plus automatic worker restart after thread death limits the blast radius of any individual StackOverflowError; both are partial controls only, since a crashed thread still consumes a pool slot during processing and repeated submissions can still degrade throughput. Because the crash is thread-local and not JVM-wide, monitoring worker threads for repeated StackOverflowError terminations provides a useful detection signal for attempted abuse.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The issue is a regular-expression resource-consumption flaw (catastrophic recursion rather than classic exponential matching) in Spring AI's text-extraction post-processing. ExtractedTextFormatter.normalize() delegates to trimAdjacentBlankLines() and alignToLeft(), both of which collapse runs of blank lines using patterns built around a quantified group. Java's java.util.regex engine implements repetition of a capturing group by recursing one stack frame per repetition, so a document whose extracted text contains a sufficiently long run of adjacent blank lines consumes stack proportional to the run length. The resulting StackOverflowError is not caught by the formatter, so it propagates out and terminates the thread handling the document. Because the flaw lives in the shared text-formatting path rather than in a specific parser, it is independent of the input file format - the CPE entry cpe:2.3:a:spring:spring_ai identifies Spring AI itself as the affected component, and the vulnerable surface is reached through the TikaDocumentReader, PagePdfDocumentReader and ParagraphPdfDocumentReader document readers. The available sources do not assign a CWE identifier; the weakness class is most consistent with uncontrolled resource consumption / inefficient regular expression complexity. The practical consequence is availability-only: a single crash does not take down the JVM, but repeated crafted submissions can exhaust a bounded worker pool and starve legitimate requests.
Know when Spring gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Remote, unauthenticated, low-complexity input processing with availability-only impact; A:H reflects sustained denial via repeated submissions despite each crash being thread-local.
Primary rating from Vendor (vmware).
CVSS VectorVendor: vmware
Lifecycle Timeline
2DescriptionCVE.org
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.
Executive ViewAI
Spring AI's ExtractedTextFormatter contains a high-severity flaw that allows unauthenticated attackers to crash document-processing threads by submitting specially crafted documents, potentially causing disruption to services that process untrusted uploads, email attachments, RAG ingestion, or crawled content. This affects any organization using the vulnerable Spring AI versions in their document pipeline, and while individual crashes are thread-local, repeated exploitation could degrade or deny service on bounded worker pools, impacting availability of AI-powered applications and associated business processes.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Access control bypass in SpringBlade v4.5.0 importUser function allows low-privileged users to import sensitive user dat
EmbeddedLdapServer in the spring-ldap-test artifact, Spring LDAP's test fixture, listens on every network interface of i
Spring Cloud Config Server contains a path traversal vulnerability when using the native file system backend, allowing u
Spring Framework MVC applications can be vulnerable to a “Path Traversal Vulnerability” when deployed on a non-compliant
SpringBlade v4.5.0 has an access control flaw in authRoutes allowing low-privileged users to escalate to admin through t
Remote code execution in Spring for GraphQL versions 1.3.0-1.3.8, 1.4.0-1.4.5, and 2.0.0-2.0.3 allows unauthenticated at
Server-Sent Events (SSE) stream corruption affects Spring MVC applications built on the functional web framework across
Spring AI versions 1.0.0 through 1.0.4 and 1.1.0 through 1.1.3 allow unauthenticated remote code execution through Sprin
Unsafe JSON deserialization in Spring Framework's JMS message converters (MappingJackson2MessageConverter and JacksonJso
Spring Security Aspects may not correctly locate method security annotations on private methods. Rated critical severity
Safety-guard bypass in the Spring Framework SpEL engine (VMware/Broadcom) lets attacker-controlled expression input esca
Directory traversal in Spring Cloud Config server module allows remote unauthenticated attackers to read arbitrary files
EUVD-2026-141029
NVD
CVE.org
GitHub PoC
Exploit-DB