Get ahead
VMware offers training and certification to turbo-charge your progress.
Learn moreFilterExpressionTextParser, 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.
Spring AI:
| Fix version | Availability |
|---|---|
| 2.0.3 | OSS |
| 2.0.2.1 | Enterprise Support Only |
| 1.1.10 | Enterprise Support Only |
| 1.0.11 | Enterprise Support Only |
No further mitigation steps are necessary.
The issue was reported responsibly by Tim Zheng - (https://github.com/EaEa0001) and idependently reported by Sai Sreewathsa Kovalluri, Kannan K and Shon Babu (Researchers) of Innspark Solutions (https://innspark.in)
To report a security vulnerability for a project within the Spring portfolio, see the Security Policy