CVE-2026-59338

7.5High

Published Dec 2, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite

7.5CVSS

High

0CVSS v3.110

Attack vector
Network
Complexity
Low
Privileges
None
User action
None
Impact
High impact on availability
Weakness
—

What an attacker gets

Unauthenticated attackers can trigger a denial of service by uploading large documents. This exhausts the JVM heap memory because the parser lacks an absolute size limit.

Root cause

The TikaDocumentReader component fails to enforce an absolute memory limit on extracted text during document parsing.

Affected versions

Spring AI versions prior to 1.0.0-M5

CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Fix & remediation

Upgrade Spring AI to version 1.0.0-M5 or later. If you cannot upgrade, restrict file uploads to trusted sources or implement strict file size validation before processing.

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD 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.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-59338

More fully triaged vulnerabilities you may want to check next.