Every CVE Search/ Get API key

CVE-2021-22119

Resource Exhaustion in Spring Security

7.5 HighPublic exploitFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

6.00%Up 5.6 points since Jun 30, 2021
90%50%10%1%

What each source reports

NVD Score used 7.5

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.

Record
CVE-2021-22119
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:N/I:N/A:P
Weakness
CWE-400, CWE-863
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2021-22119
Weakness
CWE-400
Updated
2026-11-02
EUVDEUVD-2021-1497 No score

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.

Record
EUVD-2021-1497
Updated
2026-11-03
GitHub AdvisoriesGHSA-w9jg-gvgr-354m 7.5

Resource Exhaustion in Spring Security

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.

Record
GHSA-w9jg-gvgr-354m
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-400, CWE-863
Updated
2026-11-02
OSV 7.5

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.

Record
CVE-2021-22119
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVGHSA-w9jg-gvgr-354m 7.5

Resource Exhaustion in Spring Security

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.

Record
GHSA-w9jg-gvgr-354m
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-400, CWE-863
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
org.springframework.security:spring-security-core
Maven
5.5.0 up to 5.5.1
5.5.1
org.springframework.security:spring-security-core
Maven
5.4.0 up to 5.4.7
5.4.7
org.springframework.security:spring-security-oauth2-client
Maven
5.5.0 up to 5.5.1
5.5.1
org.springframework.security:spring-security-oauth2-client
Maven
5.4.0 up to 5.4.7
5.4.7
org.springframework.security:spring-security-core
Maven
5.3.0 to 5.3.9
5.3.10
org.springframework.security:spring-security-core
Maven
5.2.0 to 5.2.10
5.2.11
org.springframework.security:spring-security-oauth2-client
Maven
5.3.0 to 5.3.9
5.3.10
org.springframework.security:spring-security-oauth2-client
Maven
5.2.0 to 5.2.10
5.2.11
org.springframework.security:spring-security-core
Maven
5.4.0 up to 5.4.7, plus listed versions
5.4.15.4.25.4.35.4.45.4.55.4.6
5.4.7
org.springframework.security:spring-security-core
Maven
5.3.0 up to 5.3.10, plus listed versions
5.3.0.RELEASE5.3.1.RELEASE5.3.2.RELEASE5.3.3.RELEASE5.3.4.RELEASE
Show 5 moreShow less
5.3.5.RELEASE5.3.6.RELEASE5.3.7.RELEASE5.3.8.RELEASE5.3.9.RELEASE
5.3.10
Show 4 moreShow less
Affected packages
PackageAffectedFixed
org.springframework.security:spring-security-core
Maven
5.2.0 up to 5.2.11, plus listed versions
5.2.0.RELEASE5.2.1.RELEASE5.2.10.RELEASE5.2.2.RELEASE5.2.3.RELEASE
Show 6 moreShow less
5.2.4.RELEASE5.2.5.RELEASE5.2.6.RELEASE5.2.7.RELEASE5.2.8.RELEASE5.2.9.RELEASE
5.2.11
org.springframework.security:spring-security-oauth2-client
Maven
5.4.0 up to 5.4.7, plus listed versions
5.4.15.4.25.4.35.4.45.4.55.4.6
5.4.7
org.springframework.security:spring-security-oauth2-client
Maven
5.3.0 up to 5.3.10, plus listed versions
5.3.0.RELEASE5.3.1.RELEASE5.3.2.RELEASE5.3.3.RELEASE5.3.4.RELEASE
Show 5 moreShow less
5.3.5.RELEASE5.3.6.RELEASE5.3.7.RELEASE5.3.8.RELEASE5.3.9.RELEASE
5.3.10
org.springframework.security:spring-security-oauth2-client
Maven
5.2.0 up to 5.2.11, plus listed versions
5.2.0.RELEASE5.2.1.RELEASE5.2.10.RELEASE5.2.2.RELEASE5.2.3.RELEASE
Show 6 moreShow less
5.2.4.RELEASE5.2.5.RELEASE5.2.6.RELEASE5.2.7.RELEASE5.2.8.RELEASE5.2.9.RELEASE
5.2.11

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
PoC in GitHubmari6274/oauth-client-exploit2021-11-02

History

History
RecordedChangedSources
aliases, productsEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV, PoC in GitHub

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-22119 is a high vulnerability (CVSS 7.5) in Spring Security, published June 29, 2021. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 6.00%, the 93rd percentile. Fixed in org.springframework.security:spring-security-core 5.5.1.

References

Show 13 moreShow less
MoveEnter Open