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.
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.
Project Subscriptions
No data.
Advisories
No advisories yet.
Fixes
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
References
History
Wed, 02 Dec 2026 07:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | Unbounded Tika text extraction can exhaust JVM memory | |
| References |
| |
| Metrics |
cvssV3_1
|
Projects
Sign in to view the affected projects.
Status: PUBLISHED
Assigner: vmware
Published:
Updated: 2026-12-02T07:09:17.514Z
Reserved: 2026-07-04T18:14:22.383Z
Link: CVE-2026-59338
No data.
Status : Received
Published: 2026-12-02T08:17:39.313
Modified: 2026-12-02T08:17:39.313
Link: CVE-2026-59338
No data.
OpenCVE Enrichment
No data.
Weaknesses
No weakness.