cvelo
P2 · HighCVSS 8.8

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

  • CVE-2026-123886
  • GHSA-c426-6j2c-pm64
  • EUVD-2026-132995

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.

Text from the CVE.org record.

Affected

  • Spring Spring Data Elasticsearch

    • from 6.1.0 to before 6.1.3
    • from 6.0.0 to before 6.0.9

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.