Spring Data Elasticsearch SpEL Injection via @Query Positional Placeholders
CVE-2026-123886 Published on November 23, 2026
Spring Data Elasticsearch SpEL Expression Injection through String-based Query Method Arguments
Spring Data Elasticsearch replaces positional placeholders in string-based @Query methods with the method arguments before it evaluates SpEL expressions in the resulting query string.
As a result, an argument that contains a SpEL expression is evaluated as part of the query, even if the declared query does not use SpEL.
An application is affected if it passes untrusted input as an argument to a repository query method that declares a @Query with positional placeholders.
In that case, a remote attacker can execute arbitrary code in the application, and repeated requests can exhaust memory through the unbounded expression cache.
Vulnerability Analysis
CVE-2026-123886 is exploitable with network access, and requires small amount of user privileges. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to be very high.
Weakness Type
What is a Code Injection Vulnerability?
The software constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
CVE-2026-123886 has been classified to as a Code Injection vulnerability or weakness.
Products Associated with CVE-2026-123886
Want to know whenever a new CVE is published for VMware Spring Framework? stack.watch will email you.
Affected Versions
Spring Data Elasticsearch:- Version 6.1.0 and below 6.1.3 is affected.
- Version 6.0.0 and below 6.0.9 is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.