CVE-2021-22119 Resource Exhaustion in Spring Security

High 7.5 Published Updated
Exploited in the wild
Not known
Fix
Available

What is CVE-2021-22119?

CVE-2021-22119 is a high-severity vulnerability in Oracle Communications Cloud Native Core Policy, published on 29 Jun 2021.

Official 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.

Weakness: CWE-863, CWE-400

Which versions are affected by CVE-2021-22119?

16 open source packages ship an affected version, including org.springframework.security:spring-security-core and org.springframework.security:spring-security-oauth2-client. It affects 2 products.

PackageAffectedFixed in
org.springframework.security:spring-security-core MavenFrom 5.2.05.2.11
org.springframework.security:spring-security-core MavenFrom 5.2.05.2.11
org.springframework.security:spring-security-core MavenFrom 5.3.05.3.10
org.springframework.security:spring-security-core MavenFrom 5.3.05.3.10
org.springframework.security:spring-security-core MavenFrom 5.4.05.4.7
org.springframework.security:spring-security-core MavenFrom 5.4.05.4.7
10 more packages
org.springframework.security:spring-security-core MavenFrom 5.5.05.5.1
org.springframework.security:spring-security-core MavenFrom 5.5.05.5.1
org.springframework.security:spring-security-oauth2-client MavenFrom 5.2.05.2.11
org.springframework.security:spring-security-oauth2-client MavenFrom 5.2.05.2.11
org.springframework.security:spring-security-oauth2-client MavenFrom 5.3.05.3.10
org.springframework.security:spring-security-oauth2-client MavenFrom 5.3.05.3.10
org.springframework.security:spring-security-oauth2-client MavenFrom 5.4.05.4.7
org.springframework.security:spring-security-oauth2-client MavenFrom 5.4.05.4.7
org.springframework.security:spring-security-oauth2-client MavenFrom 5.5.05.5.1
org.springframework.security:spring-security-oauth2-client MavenFrom 5.5.05.5.1

Products include Oracle Communications Cloud Native Core Policy, Vmware Spring Security.

How do I fix CVE-2021-22119?

Upgrade org.springframework.security:spring-security-core to a fixed version for your release line: 5.2.11, 5.3.10, 5.4.7 or 5.5.1.

Is CVE-2021-22119 being exploited?

There is no known exploitation of CVE-2021-22119 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

All Oracle Communications Cloud Native Core Policy vulnerabilities

Sources

Also known as GHSA-w9jg-gvgr-354m.

Is CVE-2021-22119 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free