CVE-2026-123886
published high CVSS 3.1 · 8.8Spring Data Elasticsearch SpEL Expression Injection through String-based Query Method Arguments
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Spring | — | Spring Data Elasticsearch6.1.0 to < 6.1.3 · 6.0.0 to < 6.0.9 | Affected | Not stated | vmware |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- vmware · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Spring | Spring Data Elasticsearch | 6.1.0 to < 6.1.3 (affected · semver)6.0.0 to < 6.0.9 (affected · semver) | vmware · cna |
Weaknesses
1- CWE-94 CWE-94 Improper Control of Generation of Code ('Code Injection')
References
1Provider assertions
2vmware · cna
Spring Data Elasticsearch SpEL Expression Injection through String-based Query Method Arguments
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- bc3959f92af98ef78f586d2670637fe498345bcb142f00cb48107a740da43efe
- Ingested
- 24 Nov 2026, 14:53:31 UTC
- Source record
- Official CVE record