Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.
Summary
CVE-2026-123886: high-severity vulnerability (CVSS 8.8) in Spring Spring Data Elasticsearch.
What happened
Original description from the source: 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.
Why it matters
High severity, CVSS 8.8.
Affected products and versions
Spring Spring Data Elasticsearch >= 6.1.0, < 6.1.3; Spring Spring Data Elasticsearch >= 6.0.0, < 6.0.9
| Product | Versions | Fixed in |
|---|---|---|
| Spring Spring Data Elasticsearch | >= 6.1.0, < 6.1.3 | — |
| Spring Spring Data Elasticsearch | >= 6.0.0, < 6.0.9 | — |
Action recommended by the source
See the official references for the fix or mitigation.
Sources and references
- https://spring.io/security/cve-2026-123886 — CVE Program
Weaknesses (CWE): CWE-94
Relevant change history
Published
Preliminary advisory published.