Denial of Service via regex-recursion

HIGH | NOVEMBER 19, 2026 | CVE-2026-59345

Description

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 Spring Products and Versions

Spring AI:

  • 2.0.0 - 2.0.2
  • 1.1.0 - 1.1.9
  • 1.0.0 - 1.0.10

Mitigation

Users of affected versions should upgrade to the corresponding fixed version.
Fix versionAvailability
2.0.3OSS
2.0.2.1Enterprise Support Only
1.1.10Enterprise Support Only
1.0.11Enterprise Support Only

No further mitigation steps are necessary.

Credit

The issue was discovered internally and independently reported by Sai Sreewathsa Kovalluri, Kannan K and Shon Babu (Researchers) of Innspark Solutions (https://innspark.in/)

History

  • 2026-11-19: Initial vulnerability report published.

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

TrueSource Spring Enterprise offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all