Spring Data Elasticsearch
Spring Data Elasticsearch SpEL Expression Injection through String-based Query Method Arguments
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 6.1.0, < 6.1.3
- >= 6.0.0, < 6.0.9
Fixed in 6.1.3, 6.0.9
Mitigation
Upgrade Spring Data Elasticsearch to 6.1.3 or 6.0.9 or later.
Timeline
Days relative to CVE publicationFirst public PoC 3 h after publication; not in CISA KEV. First PoC: googlesky/CVE-2026-123886 (created 23 Nov 2026, found by us: 23 Nov 2026).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| googlesky/CVE-2026-123886 | 23 Nov 2026 +3 h | 23 Nov 2026 | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.