Skip to content
DayZeroHub
High Not yet writtenCVSS 8.8CVE-2026-123886

CVE-2026-123886: Spring Data Elasticsearch SpEL Expression Injection through String-based Query Method Arguments

Spring Spring Data Elasticsearch

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

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

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-94

Relevant change history

  1. Published

    Preliminary advisory published.