CVE-2026-59338
Received Received - Intake

Memory Exhaustion in Spring AI TikaDocumentReader

Vulnerability report for CVE-2026-59338, 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

TikaDocumentReader in Spring AI uses Apache Tika to extract text from documents. Its default configuration disables Tika's built-in content-size limit, so the extracted text of a parsed document is buffered in memory with no absolute bound. Apache Tika still aborts a parse when the extracted text is disproportionate to the size of the input, which rejects highly compressed inputs such as archive bombs, but that guard is relative to the input and places no ceiling on the total amount of text extracted. An application that uses TikaDocumentReader to process documents from an untrusted source (e.g., user-uploaded files or attacker-supplied URLs) may therefore be induced to allocate an excessive amount of memory while parsing a sufficiently large document, potentially exhausting available JVM heap and causing a denial of service.

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 4 associated CPEs
Vendor Product Version / Range
apache tika *
spring ai From 2.0.0 (inc) to 2.0.2 (inc)
spring ai From 1.1.0 (inc) to 1.1.9 (inc)
spring ai From 1.0.0 (inc) to 1.0.10 (inc)

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

TikaDocumentReader in Spring AI uses Apache Tika to extract text from documents. Its default configuration disables Tika's built-in content-size limit, allowing unbounded memory allocation for extracted text. While Apache Tika still aborts parsing for disproportionately large outputs, this guard is relative to input size and does not impose a hard limit. Attackers can exploit this by uploading large documents to exhaust JVM heap memory and cause a denial of service.

Detection Guidance

To detect this vulnerability, monitor JVM memory usage during document processing. Check if Spring AI applications using TikaDocumentReader consume excessive memory without clear cause. Use tools like jstat or VisualVM to track heap usage. Examine logs for OutOfMemoryError exceptions during document parsing.

Impact Analysis

If you use Spring AI versions 2.0.0 to 2.0.2, 1.1.0 to 1.1.9, or 1.0.0 to 1.0.10, an attacker could upload a large document to your application. This would cause the application to allocate excessive memory during text extraction, potentially exhausting available JVM heap. The result is a denial of service, where the application becomes unresponsive or crashes.

Compliance Impact

This vulnerability primarily causes a denial of service by exhausting JVM heap memory, which could lead to application crashes or unresponsiveness. While it does not directly violate GDPR or HIPAA, it may impact compliance by disrupting services that handle personal or health data, potentially leading to downtime or data processing delays.

Mitigation Strategies

Immediately upgrade Spring AI to fixed versions: 2.0.3 (OSS), 2.0.2.1 (Enterprise), 1.1.10 (Enterprise), or 1.0.11 (Enterprise). If upgrading is not possible, disable TikaDocumentReader or implement strict input size limits for uploaded documents. Restrict document processing to trusted sources only.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-59338. 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...