MODERATE 6.4

CVE-2026-41719

Spring Data KeyValue: Remote code execution via SpEL Injection in Sort-based repository queries

Description

A SpEL Injection vulnerability exists in the Spring Data KeyValue if unsanitized user input is passed as Sort into a repository query method that delegates evaluation to the SpelPropertyComparator.

Affected versions: Spring Data KeyValue / Spring Data Redis 4.0.0 through 4.0.5; 3.5.0 through 3.5.11; 3.4.0 through 3.4.14; 3.3.0 through 3.3.16; 3.2.0 through 3.2.15; 3.1.0 through 3.1.14; 3.0.0 through 3.0.15; 2.7.0 through 2.7.19.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.springframework.data » spring-data-keyvalue
<= 2.7.19>= 3.0.0, <= 3.3.16>= 3.4.0, <= 3.4.14>= 3.5.0, < 3.5.12>= 4.0.0, < 4.0.6
3.5.12, 4.0.6

Blast radius

1affected artifacts
308affected versions
6,865dependent artifacts (est.)
110,249dependent versions

82% of the dependent artifacts (5,644) still pull an affected version in their latest release.

DepthDependent versions
Direct
487
2 hops
12,748
3 hops
32,437
4 hops
38,861
5 hops
17,163
6 hops
8,553

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.