CVE-2026-59345
Received Received - Intake

Stack Overflow in Apache Tika Document Processing

Vulnerability report for CVE-2026-59345, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-02

Last updated on: 2026-12-02

Assigner: VMware

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-02
Last Modified
2026-12-02
Generated
2026-12-02
AI Q&A
2026-12-02
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 6 associated CPEs
Vendor Product Version / Range
vmware extractedtextformatter *
vmware spring_ai From 1.0.0 (inc) to 2.0.2 (inc)
vmware spring_ai From 1.1.0 (inc) to 1.1.9 (inc)
vmware spring_ai 1.1.10
vmware spring_ai 2.0.3
vmware spring_ai 2.0.2.1

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a denial-of-service vulnerability in the ExtractedTextFormatter component. It occurs when processing untrusted text from documents. Two methods, trimAdjacentBlankLines() and alignToLeft(), use regular expressions with quantified groups that trigger Java's backtracking regex engine. A specially crafted document can cause a stack overflow, leading to an uncaught StackOverflowError that crashes the thread processing the document.

Detection Guidance

Detecting this vulnerability requires monitoring for stack overflow errors in applications processing documents through Spring AI's ExtractedTextFormatter. Check application logs for StackOverflowError exceptions during document processing. Use thread dumps to identify threads crashing due to stack exhaustion when handling untrusted documents.

Impact Analysis

The vulnerability can crash the thread handling document processing, causing service degradation or denial of service if repeated attacks target a bounded worker pool. Any application processing documents from untrusted sources (uploads, emails, RAG ingestion, web crawling) is affected, regardless of file type.

Compliance Impact

This vulnerability could indirectly impact compliance with GDPR or HIPAA by causing service disruptions or denial of service in systems processing sensitive documents. A crash in document processing threads may lead to unavailability of services handling personal or health data, potentially violating availability requirements under these regulations.

Mitigation Strategies

Upgrade to fixed versions immediately: Spring AI 2.0.3 (OSS), 2.0.2.1 (Enterprise), 1.1.10 (Enterprise), or 1.0.11 (Enterprise). No additional mitigation steps are required after upgrading as the issue is resolved in these versions.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-59345. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...