CVE-2026-123886
CVE-2026-123886 · Spring Data Elasticsearch SpEL Expression Injection through String-based Query Method Arguments
CVSS 8.8 · High · EPSS 0.8% · Public exploit · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- spring data elasticsearchUpdate to 6.0.9 / 6.1.3
Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Affected products and versions
spring data elasticsearch
- Versions
- ≥ 6.1.0, < 6.1.3: Affected (semver)
- ≥ 6.0.0, < 6.0.9: Affected (semver)
Update to 6.0.9; Update to 6.1.3