CVE Watchtower

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.
Severity Level
HIGH(7.5)
Published Date
Nov 19, 2026
Last Modified
Nov 19, 2026
Exploitation Status
No confirmed exploitation yet
CVE Record Status
Reserved
This CVE ID is referenced in a public advisory, but the CVE Program has not published its official CVE Record yet. Full CVSS/CPE data from NVD will appear here once it does.
Root Weakness (CWE)
The product does not properly control the allocation and maintenance of a limited resource, enabling denial-of-service conditions.
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:H
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityNone
IntegrityNone
AvailabilityHigh

Affected & Patched Versions

Affected 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
Patched Versions
  • 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.

  1. Check whether you run Spring AI and which version.
  2. 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 alerts

More Spring AI CVEs

External References

Data last checked: Nov 20, 2026 05:01 UTC