CVE-2026-59339 PUBLISHED

Denial of Service via uncontrolled recursion in FilterExpressionTextParser

Assigner: vmware
Reserved: 04.07.2026 Published: 02.12.2026 Updated: 02.12.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS Score: 7.5

Product Status

Vendor Spring
Product Spring AI
Versions
  • affected from 2.0.0 to 2.0.2.1 (excl.)
  • affected from 1.1.0 to 1.1.10 (excl.)
  • affected from 1.0.0 to 1.0.11 (excl.)
  • affected from 2.0.0 to 2.0.3 (excl.)

Credits

  • 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 )

References