CVE Catalog

CVE-2026-59338

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.38%

34th percentile - higher than 34% of all known CVEs

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. Extracted text is buffered in memory with no absolute bound, and Tika's guard against disproportionate text does not cap the total amount extracted. An application processing documents from an untrusted source may be induced to allocate excessive memory.

Risk Assessment

An attacker can upload a sufficiently large document, exhausting JVM heap and causing denial of service. This particularly affects applications accepting user-uploaded files or fetching documents from attacker-supplied URLs.

Recommendation

Update Spring AI to a version with the fix, or enable an absolute limit on extracted text size in Tika. Restrict the size of processed documents and avoid processing untrusted documents without additional safeguards.

Other vulnerabilities in Spring AI

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS