CVE-2026-123886
8.8high
Spring Data Elasticsearch SpEL Expression Injection through String-based Query Method Arguments
- Severity
- 8.8high CVSS:3.1 by vmware
- Exploit likelihood
- 1.33% (higher than 71% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- vmware
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Spring Spring Data Elasticsearch | from 6.1.0 before 6.1.3, from 6.0.0 before 6.0.9 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-123886 changed 2026-11-24 | CVE Terms of Use |
| NVD | CVE-2026-123886 changed 2026-11-24 | Public domain |