CVE-2026-123886: Spring Data Elasticsearch SpEL Expression Injection through String-based Query Method Arguments
Vulnerability summary
CVE-2026-123886 is a high (CVSS 8.8) Improper Control of Generation of Code vulnerability in spring spring data elasticsearch. EPSS estimates a 1.33% chance of exploitation in the next 30 days, higher than 72% of scored vulnerabilities.
Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 23-11-2026PublishedVulnerability first disclosed.
- 24-11-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
2 scores · 2 sources · 1 version- NVDNIST8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
1.33%
Chance of exploitation in the next 30 days
Percentile
72%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Spring1 product
- spring data elasticsearch≥ 6.1.0, < 6.1.3 | ≥ 6.0.0, < 6.0.9
1 vendor · 1 product