Skip to content
HighVulnerability

CVE-2026-59338: Spring AI TikaDocumentReader memory exhaustion from unbounded text extraction

Identifier
CVE-2026-59338
Published
Record updated
View JSON

Summary

TikaDocumentReader in Spring AI uses Apache Tika to extract text from documents, and its default configuration disables Tika's built-in content-size limit, so extracted text is buffered in memory with no absolute bound. Apache Tika's relative guard against disproportionate output does not cap total extracted text. An application processing documents from untrusted sources may be induced to allocate excessive memory, potentially exhausting JVM heap and causing a denial of service.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.