CRITICAL 9.0

CVE-2022-22980

SpEL Injection in Spring Data MongoDB

Description

A Spring Data MongoDB application is vulnerable to SpEL Injection when using @Query or @Aggregation-annotated query methods with SpEL expressions that contain query parameter placeholders for value binding if the input is not sanitized.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.springframework.data » spring-data-mongodb
< 3.3.5>= 3.4.0, < 3.4.1
3.3.5, 3.4.1

Blast radius

1affected artifacts
242affected versions
1,608dependent artifacts (est.)
36,049dependent versions

54% of the dependent artifacts (873) still pull an affected version in their latest release.

DepthDependent versions
Direct
22,156
2 hops
8,260
3 hops
4,109
4 hops
1,383
5 hops
141

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.