cvelo
P2 · HighCVSS 7.5EPSS 0.4%

Denial of Service via uncontrolled recursion in FilterExpressionTextParser

  • CVE-2026-59339
  • GHSA-xr6j-xpm8-5p98
  • EUVD-2026-141026

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.

Text from the CVE.org record.

Affected

  • Spring Spring AI

    • from 2.0.0 to before 2.0.2.1
    • from 1.1.0 to before 1.1.10
    • from 1.0.0 to before 1.0.11
    • from 2.0.0 to before 2.0.3

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.