# CVE-2021-22119: Resource Exhaustion in Spring Security

Source: https://junglewise.ai/threats/cve-2021-22119-resource-exhaustion-in-spring-security  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-07-02  
License: CC BY 4.0 with a link back

CVE-2021-22119 · Severity: low · CVSS 3.1 · Published 2021-07-02

Resource Exhaustion in Spring Security

Technologies: [org.springframework.security:spring-security-core (Maven)](https://junglewise.ai/threats/technologies/org-springframework-security-spring-security-core). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2021-22119 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-22119 being exploited in the wild.

**How severe is CVE-2021-22119?** Low severity, with a CVSS score of 3.1, published 2 July 2021.

**Which products and versions are affected?** org.springframework.security:spring-security-core (Maven) ECOSYSTEM:introduced=5.5.0,fixed=5.5.1; org.springframework.security:spring-security-oauth2-client (Maven) ECOSYSTEM:introduced=5.5.0,fixed=5.5.1.

**Is there a fix for CVE-2021-22119?** Yes. org.springframework.security:spring-security-core (Maven): upgrade to 5.5.1 or later; org.springframework.security:spring-security-oauth2-client (Maven): upgrade to 5.5.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-22119?** Check whether you run org.springframework.security:spring-security-core (Maven) or org.springframework.security:spring-security-oauth2-client (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.springframework.security:spring-security-core (Maven): upgrade to 5.5.1 or later

  ```sh
  # set org.springframework.security:spring-security-core to 5.5.1 in your pom.xml or build.gradle
  ```

- org.springframework.security:spring-security-oauth2-client (Maven): upgrade to 5.5.1 or later

  ```sh
  # set org.springframework.security:spring-security-oauth2-client to 5.5.1 in your pom.xml or build.gradle
  ```


## Affected products

- org.springframework.security:spring-security-core (Maven) ECOSYSTEM:introduced=5.5.0,fixed=5.5.1
- org.springframework.security:spring-security-oauth2-client (Maven) ECOSYSTEM:introduced=5.5.0,fixed=5.5.1

## Identifiers

- CVE-2021-22119
- GHSA-w9jg-gvgr-354m

## Related threats

- [Spring Security Vulnerable to User Attribute Enumeration when Using DaoAuthenticationProvider](https://junglewise.ai/threats/cve-2026-22746-spring-security-vulnerable-to-user-attribute-enumeration-when)
- [Spring Spring Security TOCTOU race condition in JdbcOneTimeTokenService](https://junglewise.ai/threats/cve-2026-22751-spring-spring-security-toctou-race-condition-in)
- [Spring Security has a broken timing attack mitigation implemented in DaoAuthenticationProvide](https://junglewise.ai/threats/cve-2025-22234-spring-security-has-a-broken-timing-attack-mitigation-implemented)
- [Spring Security annotation detection mechanism has authorization bypass](https://junglewise.ai/threats/cve-2025-41248-spring-security-annotation-detection-mechanism-has-authorization)
- [Spring Security authorization bypass for method security annotations on private methods](https://junglewise.ai/threats/cve-2025-41232-spring-security-authorization-bypass-for-method-security)
