Unbounded Tika text extraction can exhaust JVM memory
- CVE-2026-59338
- GHSA-g875-7889-m4p6
- EUVD-2026-141025
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.
Text from the CVE.org record.
Affected
Spring Spring AI
- from 2.0.0 to before 2.0.2.1
- from 1.1.0 to before 1.1.10
- from 1.0.0 to before 1.0.11
- from 2.0.0 to before 2.0.3
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.