CVE-2026-123886

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.
Configurations

No configuration.

History

24 Nov 2026, 15:17

Type Values Removed Values Added
CWE CWE-94

23 Nov 2026, 11:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-11-23 11:16

Updated : 2026-11-24 15:17


NVD link : CVE-2026-123886

Mitre link : CVE-2026-123886

CVE.ORG link : CVE-2026-123886


JSON object : View

Products Affected

No product.

CWE
CWE-94

Improper Control of Generation of Code ('Code Injection')