CVE Catalog

CVE-2026-59339

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.38%

34th percentile - higher than 34% of all known CVEs

Summary

FilterExpressionTextParser, the vector store filter expression parser in Spring AI, is vulnerable to denial of service when parsing untrusted filter expressions. The recursive-descent ANTLR4 parser has no nesting depth limit, and parse() only catches ParseCancellationException, so deeply nested parentheses cause unbounded recursion and an uncaught StackOverflowError. Applications accepting filter expressions from untrusted input, such as via QuestionAnswerAdvisor.FILTER_EXPRESSION or SearchRequest.withFilterExpression(), are impacted.

Risk Assessment

An attacker can repeatedly submit malicious filter expressions, exhausting worker pool threads and degrading or denying service to all users. Although a single crash is thread-local, repeated attacks can take down the application.

Recommendation

Update Spring AI to a version containing the fix, or limit filter expression nesting depth and avoid accepting them from untrusted sources. Consider validating and sanitizing filter expressions before passing them to the parser.

Other vulnerabilities in Spring AI

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS