CVE-2026-59345

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

Remote attackers can cause a denial of service by crashing worker threads. This requires sending a specially crafted document for processing.

Root cause

The ExtractedTextFormatter uses a regular expression with a quantified group that causes stack exhaustion via backtracking when processing specific input.

Affected versions

Versions not listed — check the vendor advisory.

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 to the latest version of Spring AI as specified in the Spring security advisory. If you cannot patch immediately, restrict document processing to trusted sources only.

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

NVD description

ExtractedTextFormatter is vulnerable to a denial of service when processing untrusted text extracted from documents. trimAdjacentBlankLines() and alignToLeft() collapse runs of blank lines using regular expressions with a quantified group, and Java's backtracking regex engine recurses one stack frame per repetition of that group. A specially crafted document can exploit this to exhaust the calling thread's stack, resulting in an uncaught StackOverflowError. This crashes the thread processing the document; repeated submissions against a bounded worker pool can degrade or deny service to all users, even though any single crash is thread-local rather than JVM-wide. Any application that processes documents from untrusted sources (document upload, email attachment processing, RAG ingestion, web crawling) through TikaDocumentReader, PagePdfDocumentReader, or ParagraphPdfDocumentReader is impacted, regardless of file type.

References

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

More fully triaged vulnerabilities you may want to check next.