HIGH 7.5

CVE-2021-22119

Resource Exhaustion in Spring Security

Description

Spring Security versions 5.5.x prior to 5.5.1, 5.4.x prior to 5.4.7, 5.3.x prior to 5.3.10 and 5.2.x prior to 5.2.11 are susceptible to a Denial-of-Service (DoS) attack via the initiation of the Authorization Request in an OAuth 2.0 Client Web and WebFlux application. A malicious user or attacker can send multiple requests initiating the Authorization Request for the Authorization Code Grant, which has the potential of exhausting system resources using a single session or multiple sessions.

Affected Maven artifacts (2)

ArtifactAffected versionsFixed in
org.springframework.security » spring-security-core
>= 5.2.0, < 5.2.11>= 5.3.0, < 5.3.10>= 5.4.0, < 5.4.7>= 5.5.0, < 5.5.1
5.2.11, 5.3.10, 5.4.7, 5.5.1
org.springframework.security » spring-security-oauth2-client
>= 5.2.0, < 5.2.11>= 5.3.0, < 5.3.10>= 5.4.0, < 5.4.7>= 5.5.0, < 5.5.1
5.2.11, 5.3.10, 5.4.7, 5.5.1

Blast radius

2affected artifacts
58affected versions
4,042dependent artifacts (est.)
187,629dependent versions

35% of the dependent artifacts (1,432) still pull an affected version in their latest release.

DepthDependent versions
Direct
29,915
2 hops
60,325
3 hops
51,054
4 hops
38,520
5 hops
6,804
6 hops
1,011

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.