CVE-2026-59339

7.5High

Published Dec 2, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite

7.5CVSS

High

0CVSS v3.110

Attack vector
Network
Complexity
Low
Privileges
None
User action
None
Impact
High impact on availability
Weakness
—

What an attacker gets

Remote attackers can cause a denial of service by crashing worker threads. This requires sending specially crafted, deeply nested filter expressions to your application.

Root cause

The FilterExpressionTextParser uses an ANTLR4 parser without recursion depth limits, leading to a StackOverflowError on complex inputs.

Affected versions

Versions not listed — check the vendor advisory.

CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Fix & remediation

Update to the latest version of Spring AI provided by the vendor. If you cannot update, sanitize all user-supplied filter expressions to reject inputs with excessive nesting before passing them to the parser.

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD 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.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-59339

More fully triaged vulnerabilities you may want to check next.