Spring Data Elasticsearch Vulnerability in Repository Query Methods
CVE-2026-123886

8.8HIGH

Key Information:

Vendor

Spring

Vendor
CVE Published:
23 November 2026

What is CVE-2026-123886?

The Spring Data Elasticsearch framework has a vulnerability in which it mishandles positional placeholders within string-based @Query methods. Specifically, it evaluates method arguments that contain Spring Expression Language (SpEL) expressions, even when the associated query does not utilize SpEL. This issue can lead to scenarios where an application is exposed to untrusted input passed to repository query methods with declared @Query annotations. Consequently, a remote attacker can execute arbitrary code within the application. Additionally, continual exploitation can lead to memory exhaustion due to an unbounded expression cache.

Affected Version(s)

Spring Data Elasticsearch 6.1.0 < 6.1.3

Spring Data Elasticsearch 6.0.0 < 6.0.9

References

CVSS V3.1

Score:
8.8
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.