CVE-2021-22119
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.
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
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 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - CVSS 2.0
- 5.0 Medium
AV: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 High
CVSS: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 High
CVSS: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 High
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
org.springframework.security:spring-security-coreMaven |
5.5.0 up to 5.5.1 | 5.5.1 |
org.springframework.security:spring-security-coreMaven |
5.4.0 up to 5.4.7 | 5.4.7 |
org.springframework.security:spring-security-oauth2-clientMaven |
5.5.0 up to 5.5.1 | 5.5.1 |
org.springframework.security:spring-security-oauth2-clientMaven |
5.4.0 up to 5.4.7 | 5.4.7 |
org.springframework.security:spring-security-coreMaven |
5.3.0 to 5.3.9 | 5.3.10 |
org.springframework.security:spring-security-coreMaven |
5.2.0 to 5.2.10 | 5.2.11 |
org.springframework.security:spring-security-oauth2-clientMaven |
5.3.0 to 5.3.9 | 5.3.10 |
org.springframework.security:spring-security-oauth2-clientMaven |
5.2.0 to 5.2.10 | 5.2.11 |
org.springframework.security:spring-security-coreMaven |
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-coreMaven |
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 less5.3.5.RELEASE5.3.6.RELEASE5.3.7.RELEASE5.3.8.RELEASE5.3.9.RELEASE |
5.3.10 |
Show 4 moreShow less
| Package | Affected | Fixed |
|---|---|---|
org.springframework.security:spring-security-coreMaven |
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 less5.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-clientMaven |
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-clientMaven |
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 less5.3.5.RELEASE5.3.6.RELEASE5.3.7.RELEASE5.3.8.RELEASE5.3.9.RELEASE |
5.3.10 |
org.springframework.security:spring-security-oauth2-clientMaven |
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 less5.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.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | mari6274/oauth-client-exploit | 2021-11-02 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases, products | EUVD | |
| first indexed | CVE 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
tanzu.vmware.com/security/cve-2021-22119
lists.apache.org/thread.html/r163b3e4e39803882f5be05ee8606b2b9812920e196daa2a82997ce14%40%3Cpluto-dev.portals.apache.org%3E
lists.apache.org/thread.html/r390783b3b1c59b978131ac08390bf77fbb3863270cbde59d5b0f5fde%40%3Cpluto-dev.portals.apache.org%3E
lists.apache.org/thread.html/r3868207b967f926819fe3aa8d33f1666429be589bb4a62104a49f4e3%40%3Cpluto-dev.portals.apache.org%3E
lists.apache.org/thread.html/r89aa1b48a827f5641310305214547f1d6b2101971a49b624737c497f%40%3Cpluto-dev.portals.apache.org%3E
lists.apache.org/thread.html/ra53677224fe4f04c2599abc88032076faa18dc84b329cdeba85d4cfc%40%3Cpluto-scm.portals.apache.org%3E
Show 13 moreShow less
lists.apache.org/thread.html/r08a449010786e0bcffa4b5781b04fcb55d6eafa62cb79b8347680aad%40%3Cissues.nifi.apache.org%3E
oracle.com/security-alerts/cpujan2022.html
oracle.com/security-alerts/cpujul2022.html
nvd.nist.gov/vuln/detail/CVE-2021-22119
github.com/spring-projects/spring-security/pull/9513
lists.apache.org/thread.html/r163b3e4e39803882f5be05ee8606b2b9812920e196daa2a82997ce14@%3Cpluto-dev.portals.apache.org%3E
lists.apache.org/thread.html/r3868207b967f926819fe3aa8d33f1666429be589bb4a62104a49f4e3@%3Cpluto-dev.portals.apache.org%3E
lists.apache.org/thread.html/r390783b3b1c59b978131ac08390bf77fbb3863270cbde59d5b0f5fde@%3Cpluto-dev.portals.apache.org%3E
lists.apache.org/thread.html/r89aa1b48a827f5641310305214547f1d6b2101971a49b624737c497f@%3Cpluto-dev.portals.apache.org%3E
lists.apache.org/thread.html/ra53677224fe4f04c2599abc88032076faa18dc84b329cdeba85d4cfc@%3Cpluto-scm.portals.apache.org%3E
lists.apache.org/thread.html/r08a449010786e0bcffa4b5781b04fcb55d6eafa62cb79b8347680aad@%3Cissues.nifi.apache.org%3E
github.com/advisories/GHSA-w9jg-gvgr-354m
github.com/spring-projects/spring-security