CVE-2026-123886

published 23 Nov 2026 · updated 24 Nov 2026

Spring Data Elasticsearch SpEL Expression Injection through String-based Query Method Arguments

8.8HighCVSS 8.8

No exploitation in the wild has been reported. Fixed in 6.0.9 and 6.1.3.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Spring>=6.0.0 <6.0.9, >=6.1.0 <6.1.36.0.9, 6.1.3

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-123886 severity on Zeptric[![CVE-2026-123886](https://zeptric.io/badge/cve/CVE-2026-123886.svg)](https://zeptric.io/cve/CVE-2026-123886)