Skip to main content

Spring AI CVE-2026-59345

| EUVDEUVD-2026-141029 HIGH
2026-12-02 vmware
7.5
CVSS 3.1 · Vendor: vmware
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted document to ingestion endpoint
  2. Delivery
    Reader extracts untrusted text
  3. Exploit
    Blank-line runs trigger backtracking regex recursion
  4. Execution
    Stack exhausted, StackOverflowError crashes worker thread
  5. Persist
    Repeat to deplete bounded worker pool
  6. Impact
    Service 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).

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Spring AI 1.1.0 <1.1.10
Spring AI 1.0.0 <1.0.11
Spring AI 2.0.0 <2.0.3
Spring AI 2.0.0 <2.0.2.1

Affected Packages

euvd spring_ai fix: 1.0.11, 1.1.10, 2.0.2.1, 2.0.3

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

Vendor (vmware) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Remote, unauthenticated, low-complexity input processing with availability-only impact; A:H reflects sustained denial via repeated submissions despite each crash being thread-local.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (vmware).

CVSS VectorVendor: vmware

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch available
Dec 02, 2026 - 08:01 EUVD
CVE Published
Dec 02, 2026 - 07:09 cve.org
HIGH 7.5

DescriptionCVE.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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

Prevalence
Medium
Spring AI is a popular but relatively new JVM framework, not yet ubiquitous
Data Quality
3 sources
Confidence: Low

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Medium

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Spring

View all
CVE-2025-70982 CRITICAL POC
9.9 Jan 26

Access control bypass in SpringBlade v4.5.0 importUser function allows low-privileged users to import sensitive user dat

CVE-2026-59367 CRITICAL POC
9.4 Dec 02

EmbeddedLdapServer in the spring-ldap-test artifact, Spring LDAP's test fixture, listens on every network interface of i

CVE-2026-22739 HIGH POC
8.6 Mar 24

Spring Cloud Config Server contains a path traversal vulnerability when using the native file system backend, allowing u

CVE-2025-41242 MEDIUM POC
5.9 Aug 18

Spring Framework MVC applications can be vulnerable to a “Path Traversal Vulnerability” when deployed on a non-compliant

CVE-2025-70983 CRITICAL
9.9 Jan 23

SpringBlade v4.5.0 has an access control flaw in authRoutes allowing low-privileged users to escalate to admin through t

CVE-2026-41699 CRITICAL
9.8 Jun 11

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

CVE-2026-59313 CRITICAL
9.8 Aug 27

Server-Sent Events (SSE) stream corruption affects Spring MVC applications built on the functional web framework across

CVE-2026-22738 CRITICAL
9.8 Mar 27

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

CVE-2026-41855 CRITICAL
9.8 Jun 09

Unsafe JSON deserialization in Spring Framework's JMS message converters (MappingJackson2MessageConverter and JacksonJso

CVE-2025-41232 CRITICAL
9.1 May 21

Spring Security Aspects may not correctly locate method security annotations on private methods. Rated critical severity

CVE-2026-59283 CRITICAL
9.1 Aug 27

Safety-guard bypass in the Spring Framework SpEL engine (VMware/Broadcom) lets attacker-controlled expression input esca

CVE-2026-40982 CRITICAL
9.1 May 07

Directory traversal in Spring Cloud Config server module allows remote unauthenticated attackers to read arbitrary files

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy