CVE-2026-59338 PUBLISHED

Unbounded Tika text extraction can exhaust JVM memory

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

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.

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 reported responsibly by aleister1102 ( https://github.com/aleister1102 ) and independently reported by Raphael Zanarelli - https://github.com/zanarellidev

References