CVE-2026-123886
JSON

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 packageVersionsReported by
Spring Spring Data Elasticsearchfrom 6.1.0 before 6.1.3, from 6.0.0 before 6.0.9CVE List

Classification

CWE-94

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-123886 changed 2026-11-24CVE Terms of Use
NVDCVE-2026-123886 changed 2026-11-24Public domain