CVE-2026-59345 PUBLISHED

Denial of Service via regex-recursion

Assigner: vmware
Reserved: 04.07.2026 Published: 02.12.2026 Updated: 02.12.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS Score: 7.5

Product Status

Vendor Spring
Product Spring AI
Versions
  • affected from 2.0.0 to 2.0.2.1 (excl.)
  • affected from 1.1.0 to 1.1.10 (excl.)
  • affected from 1.0.0 to 1.0.11 (excl.)
  • affected from 2.0.0 to 2.0.3 (excl.)

Credits

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

References