# CVE-2021-22112: Privilege escalation in spring security

Source: https://junglewise.ai/threats/cve-2021-22112-privilege-escalation-in-spring-security  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-05-10  
License: CC BY 4.0 with a link back

CVE-2021-22112 · Severity: low · CVSS 3.1 · Published 2021-05-10

Privilege escalation in spring security

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

## Quick answers

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

**How severe is CVE-2021-22112?** Low severity, with a CVSS score of 3.1, published 10 May 2021.

**Which products and versions are affected?** org.springframework.security:spring-security-bom (Maven) ECOSYSTEM:introduced=5.4.0,fixed=5.4.4; org.springframework.security:spring-security-web (Maven) ECOSYSTEM:introduced=5.4.0,fixed=5.4.4.

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

**Am I affected by CVE-2021-22112?** Check whether you run org.springframework.security:spring-security-bom (Maven) or org.springframework.security:spring-security-web (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-bom (Maven): upgrade to 5.4.4 or later

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

- org.springframework.security:spring-security-web (Maven): upgrade to 5.4.4 or later

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


## Affected products

- org.springframework.security:spring-security-bom (Maven) ECOSYSTEM:introduced=5.4.0,fixed=5.4.4
- org.springframework.security:spring-security-web (Maven) ECOSYSTEM:introduced=5.4.0,fixed=5.4.4

## Identifiers

- CVE-2021-22112
- GHSA-gq28-h5vg-8prx

## Related threats

- [VMware Spring Security user impersonation in SubjectDnX509PrincipalExtractor](https://junglewise.ai/threats/cve-2026-47838-vmware-spring-security-user-impersonation-in)
- [VMware Spring Security open redirect in CookieRequestCache](https://junglewise.ai/threats/cve-2026-41706-vmware-spring-security-open-redirect-in-cookierequestcache)
- [VMware Spring Security user impersonation in SubjectX500PrincipalExtractor](https://junglewise.ai/threats/cve-2026-22747-vmware-spring-security-user-impersonation-in)
- [Spring Security HTTP Headers Are not Written Under Some Conditions](https://junglewise.ai/threats/cve-2026-22732-spring-security-http-headers-are-not-written-under-some)
- [Spring Security authorization bypass in WebFlux static resources](https://junglewise.ai/threats/cve-2024-38821-spring-security-authorization-bypass-in-webflux-static-resources)
