CVE-2026-59339
Denial of Service via uncontrolled recursion in FilterExpressionTextParser
- Severity
- high CVSS 7.5 (v3.1)
- Affects
- Spring AI · Spring
- Published
- 2 December 2026 by vmware
FilterExpressionTextParser, the vector store filter expression parser, is vulnerable to a denial of service when parsing untrusted filter expressions.
The parser is a recursive-descent ANTLR4 parser with no limit on nesting depth, and parse() only catches ParseCancellationException .
A filter expression containing deeply nested parentheses drives the parser into unbounded recursion, exhausting the calling thread's stack and terminating it with an uncaught StackOverflowError .
Applications that accept filter expressions from untrusted input, such as runtime filter expressions supplied via QuestionAnswerAdvisor.FILTER_EXPRESSION or SearchRequest.withFilterExpression() in retrieval-augmented generation pipelines, are impacted.
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.
Our coverage
We have not written about this one. Know why it matters? Send a tip.