CVE-2026-123886
Published:November 23, 2026
Updated:November 24, 2026
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 Packages
https://github.com/spring-projects/spring-data-elasticsearch.git (GITHUB):
Affected version(s) >=6.1.0-M1 <6.1.3Fix Suggestion:
Update to version 6.1.3https://github.com/spring-projects/spring-data-elasticsearch.git (GITHUB):
Affected version(s) >=5.3.0-M2 <6.0.9 || >=6.0.0-M1 <6.0.9Fix Suggestion:
Update to version 6.0.9https://github.com/spring-projects/spring-data-elasticsearch.git (GITHUB):
Affected version(s) >=6.2.0-M1 <6.2.0Fix Suggestion:
Update to version 6.2.0org.springframework.data:spring-data-elasticsearch (JAVA):
Affected version(s) >=6.2.0-M1 <6.2.0Fix Suggestion:
Update to version 6.2.0org.springframework.data:spring-data-elasticsearch (JAVA):
Affected version(s) >=6.1.0-M1 <6.1.3Fix Suggestion:
Update to version 6.1.3org.springframework.data:spring-data-elasticsearch (JAVA):
Affected version(s) >=6.0.0-M1 <6.0.9 || >=5.3.0 <6.0.9Fix Suggestion:
Update to version 6.0.9Related Resources (2)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.8
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Neutralization of Special Elements used in an Expression Language Statement