← VULNERABILITIES

CVE-2026-123886

Spring Data Elasticsearch SpEL Expression Injection through String-based Query Method Arguments

High · 8.8Fix available
CVSS
8.8
EPSS
0.79% (p53)
Published
2026-11-23
Age
6d old
Modified
2026-11-24
Product
Spring Spring Data Elasticsearch

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

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.

Fixed in

6.0.9 · 6.1.3

Affected packages

EcosystemPackageRangeFixed
vendorSpring Data Elasticsearch>=6.0.0, <6.0.96.0.9
vendorSpring Data Elasticsearch>=6.1.0, <6.1.36.1.3

Sources

  • NVD · first seen 6d ago · NVD terms of use
  • CVE List · first seen 6d ago · CVE Terms of Use

References

JSON