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)
| Artifact | Affected versions | Fixed 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
35% of the dependent artifacts (1,432) still pull an affected version in their latest release.
| Depth | Dependent 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
- org.springframework.boot » spring-boot-starter-security3,606 usages
- org.springframework.security » spring-security-web2,133 usages
- org.springframework.security » spring-security-config2,063 usages
- org.springframework.security » spring-security-test1,308 usages
- org.jenkins-ci.main » jenkins-core1,191 usages
- com.atlassian.jira » jira-core554 usages
- org.springframework.security » spring-security-cas550 usages
- org.springframework.security » spring-security-oauth2-jose508 usages
- org.apereo.cas » cas-server-core-util-api492 usages
- org.springframework.security » spring-security-oauth2-client481 usages
- org.springframework.boot » spring-boot-starter-oauth2-resource-server463 usages
- org.springframework.security » spring-security-ldap457 usages
- org.springframework.boot » spring-boot-starter-oauth2-client446 usages
- org.apereo.cas » cas-server-core-configuration-api442 usages
- org.apereo.cas » cas-server-core-authentication-api400 usages
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.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2021-22119
- Webhttps://github.com/spring-projects/spring-security/pull/9513
- Packagehttps://github.com/spring-projects/spring-security
- Webhttps://lists.apache.org/thread.html/r08a449010786e0bcffa4b5781b04fcb55d6eafa62cb79b8347680aad@%3Cissues.nifi.apache.org%3E
- Webhttps://lists.apache.org/thread.html/r163b3e4e39803882f5be05ee8606b2b9812920e196daa2a82997ce14@%3Cpluto-dev.portals.apache.org%3E
- Webhttps://lists.apache.org/thread.html/r3868207b967f926819fe3aa8d33f1666429be589bb4a62104a49f4e3@%3Cpluto-dev.portals.apache.org%3E
- Webhttps://lists.apache.org/thread.html/r390783b3b1c59b978131ac08390bf77fbb3863270cbde59d5b0f5fde@%3Cpluto-dev.portals.apache.org%3E
- Webhttps://lists.apache.org/thread.html/r89aa1b48a827f5641310305214547f1d6b2101971a49b624737c497f@%3Cpluto-dev.portals.apache.org%3E
- Webhttps://lists.apache.org/thread.html/ra53677224fe4f04c2599abc88032076faa18dc84b329cdeba85d4cfc@%3Cpluto-scm.portals.apache.org%3E
- Webhttps://tanzu.vmware.com/security/cve-2021-22119
- Webhttps://www.oracle.com/security-alerts/cpujan2022.html
- Webhttps://www.oracle.com/security-alerts/cpujul2022.html
