Denial of Service via uncontrolled recursion in FilterExpressionTextParser

HIGH | NOVEMBER 19, 2026 | CVE-2026-59339

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 Spring Products and Versions

Spring AI:

  • 2.0.0 - 2.0.2
  • 1.1.0 - 1.1.9
  • 1.0.0 - 1.0.10

Mitigation

Users of affected versions should upgrade to the corresponding fixed version.
Fix versionAvailability
2.0.3OSS
2.0.2.1Enterprise Support Only
1.1.10Enterprise Support Only
1.0.11Enterprise Support Only

No further mitigation steps are necessary.

Credit

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)

History

  • 2026-11-19: Initial vulnerability report published.

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

TrueSource Spring Enterprise offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all