CVE-2026-59345
7.5HighPublished Dec 2, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite
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
Related Critical / High CVEs
More fully triaged vulnerabilities you may want to check next.
- CVE-2026-593387.5HighUnauthenticated 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.
- CVE-2026-593397.5HighRemote attackers can cause a denial of service by crashing worker threads. This requires sending specially crafted, deeply nested filter expressions to your application.
- CVE-2026-593447.5HighUnauthenticated attackers can bypass metadata filters to access unauthorized documents. This occurs when an application passes user-controlled input into SearchRequest.filterExpression.
- CVE-2026-811087.1HighLocal attackers with low privileges can bypass authorization to gain unauthorized access and execute commands. This requires local access to the virtual appliance.
- CVE-2026-811078.4HighLocal attackers with low privileges can execute arbitrary OS commands as root. This allows full system compromise and script injection.
- CVE-2026-811067.1HighLocal attackers can read sensitive information from log files. This requires local access to the virtual appliance.