CVE-2026-59339
Denial of Service via uncontrolled recursion in FilterExpressionTextParser
Description
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.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework.ai » spring-ai-vector-store | >= 1.0.0, <= 1.0.10>= 1.1.0, <= 1.1.9>= 2.0.0, < 2.0.3 | 2.0.3 |
Blast radius
79% of the dependent artifacts (441) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 945 |
| 2 hops | 1,875 |
| 3 hops | 1,155 |
| 4 hops | 1,276 |
| 5 hops | 185 |
| 6 hops | 156 |
Most used dependents
- com.embabel.agent » embabel-agent-api67 usages
- com.alibaba.cloud.ai » spring-ai-alibaba-core63 usages
- com.alibaba.cloud.ai » spring-ai-alibaba-dashscope50 usages
- io.jaiclaw » jaiclaw-spring-boot-starter43 usages
- io.github.agentic-spring-ai » agentic-spring-ai-dashscope43 usages
- io.jaiclaw » jaiclaw-maven-plugin42 usages
- io.jaiclaw » jaiclaw-gateway35 usages
- org.springframework.ai » spring-ai-rag32 usages
- org.springframework.ai » spring-ai-autoconfigure-vector-store-observation25 usages
- org.springframework.ai » spring-ai-test19 usages
- com.embabel.agent » embabel-agent-platform-autoconfigure19 usages
- com.alibaba.cloud.ai » spring-ai-alibaba-graph-core17 usages
- org.apache.camel » camel-allcomponents16 usages
- org.springframework.ai » spring-ai-advisors-vector-store16 usages
- io.jaiclaw » jaiclaw-starter-shell16 usages
Computed from the dependency graph of build 20261125.2201 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
