# CVE-2026-123886: Spring Data Elasticsearch SpEL Expression Injection through String-based Query Method Arguments

- Severity: High 8.8 (CVSS:3.1, scored by vmware) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.33%, higher than 71% of CVEs (2026-12-01)
- Published: 2026-11-23T10:12:10.050Z
- Modified: 2026-11-24T15:17:15.670Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- Spring Spring Data Elasticsearch: from 6.1.0 before 6.1.3; from 6.0.0 before 6.0.9

## References

- <https://spring.io/security/cve-2026-123886>

## Sources

- CVE List: [CVE-2026-123886](https://www.cve.org/CVERecord?id=CVE-2026-123886), CVE Terms of Use, modified 2026-11-24
- NVD: [CVE-2026-123886](https://nvd.nist.gov/vuln/detail/CVE-2026-123886), Public domain, modified 2026-11-24

---

Page: https://cve.day/CVE-2026-123886 · Whole record: https://cve.day/CVE-2026-123886.json · Rebuilt by cve.day 2026-11-25T22:59:52.635Z
