Resource Exhaustion in Spring Security
Published 2 Jul 2021 · Updated 8 Nov 2023
Is your project on an affected org.springframework.security:spring-security-core?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- >=5.5.0 <5.5.1
- Fixed in
- 5.5.1
mvn versions:use-dep-version -Dincludes=org.springframework.security:spring-security-core -DdepVersion=5.5.1 -DforceVersion=true- Affected
- >=5.4.0 <5.4.7
- Fixed in
- 5.4.7
mvn versions:use-dep-version -Dincludes=org.springframework.security:spring-security-core -DdepVersion=5.4.7 -DforceVersion=true- Affected
- >=5.3.0 <5.3.10
- Fixed in
- 5.3.10
mvn versions:use-dep-version -Dincludes=org.springframework.security:spring-security-core -DdepVersion=5.3.10 -DforceVersion=true- Affected
- >=5.2.0 <5.2.11
- Fixed in
- 5.2.11
mvn versions:use-dep-version -Dincludes=org.springframework.security:spring-security-core -DdepVersion=5.2.11 -DforceVersion=true- Affected
- >=5.5.0 <5.5.1
- Fixed in
- 5.5.1
mvn versions:use-dep-version -Dincludes=org.springframework.security:spring-security-oauth2-client -DdepVersion=5.5.1 -DforceVersion=true- Affected
- >=5.4.0 <5.4.7
- Fixed in
- 5.4.7
mvn versions:use-dep-version -Dincludes=org.springframework.security:spring-security-oauth2-client -DdepVersion=5.4.7 -DforceVersion=true- Affected
- >=5.3.0 <5.3.10
- Fixed in
- 5.3.10
mvn versions:use-dep-version -Dincludes=org.springframework.security:spring-security-oauth2-client -DdepVersion=5.3.10 -DforceVersion=true- Affected
- >=5.2.0 <5.2.11
- Fixed in
- 5.2.11
mvn versions:use-dep-version -Dincludes=org.springframework.security:spring-security-oauth2-client -DdepVersion=5.2.11 -DforceVersion=trueDetails
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.
Is GHSA-w9jg-gvgr-354m in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.springframework.security:spring-security-core, and gives you the command that fixes it.
More advisories for org.springframework.security:spring-security-core
- LowCVE-2026-22746Spring Security Vulnerable to User Attribute Enumeration when Using DaoAuthenticationProvider · 22 Apr 2026
- MediumCVE-2026-22751Spring Security Core has a TOCTOU race condition when One-Time Token login with JdbcOneTimeTokenService is configured · 21 Apr 2026
- MediumCVE-2025-22234Spring Security has a broken timing attack mitigation implemented in DaoAuthenticationProvide · 22 Jan 2026
- HighCVE-2025-41248Spring Security annotation detection mechanism has authorization bypass · 16 Sept 2025
- CriticalCVE-2025-41232Spring Security authorization bypass for method security annotations on private methods · 21 May 2025
- MediumCVE-2025-22223Spring Security Vulnerable to Authorization Bypass via Security Annotations · 24 Mar 2025
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2021-22119
- Linkgithub.com/spring-projects/spring-security/pull/9513
- Packagegithub.com/spring-projects/spring-security
- Linklists.apache.org/thread.html/r08a449010786e0bcffa4b5781b04fcb55d6eafa62cb79b8347680aad@%3Cissues.nifi.apache.org%3E
- Linklists.apache.org/thread.html/r163b3e4e39803882f5be05ee8606b2b9812920e196daa2a82997ce14@%3Cpluto-dev.portals.apache.org%3E
- Linklists.apache.org/thread.html/r3868207b967f926819fe3aa8d33f1666429be589bb4a62104a49f4e3@%3Cpluto-dev.portals.apache.org%3E
- Linklists.apache.org/thread.html/r390783b3b1c59b978131ac08390bf77fbb3863270cbde59d5b0f5fde@%3Cpluto-dev.portals.apache.org%3E
- Linklists.apache.org/thread.html/r89aa1b48a827f5641310305214547f1d6b2101971a49b624737c497f@%3Cpluto-dev.portals.apache.org%3E
- Linklists.apache.org/thread.html/ra53677224fe4f04c2599abc88032076faa18dc84b329cdeba85d4cfc@%3Cpluto-scm.portals.apache.org%3E
- Linktanzu.vmware.com/security/cve-2021-22119
- Linkwww.oracle.com/security-alerts/cpujan2022.html
- Linkwww.oracle.com/security-alerts/cpujul2022.html
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.