CVE-2021-22112Pivotal Software Spring Security
High 8.8
Follow: this CVE · Pivotal Software · Pivotal Software Spring Security We alert you by email or Slack (account required).
- Priority
- 53
- CVSS 3.1
- 8.8
- EPSS
- 3.3% probability of exploitation in 30 days · percentile 89
- Auth required
- Yes
- Published
- Feb 23, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
Spring Security 5.4.x prior to 5.4.4, 5.3.x prior to 5.3.8.RELEASE, 5.2.x prior to 5.2.9.RELEASE, and older unsupported versions can fail to save the SecurityContext if it is changed more than once in a single request.A malicious user cannot cause the bug to happen (it must be programmed in). However, if the application's intent is to only allow the user to run with elevated privileges in a small portion of the application, the bug can be leveraged to extend those privileges to the rest of the application.
What to do
- Apply the vendor's security update for Spring Security.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | org.springframework.security:spring-security-bom |
≥ 5.4.0 < 5.4.4 |
5.4.4 |
— |
| Maven | org.springframework.security:spring-security-bom |
≥ 5.3.0 < 5.3.8 |
5.3.8 |
— |
| Maven | org.springframework.security:spring-security-bom |
< 5.2.9 |
5.2.9 |
— |
| Maven | org.springframework.security:spring-security-web |
≥ 5.4.0 < 5.4.4 |
5.4.4 |
— |
| Maven | org.springframework.security:spring-security-web |
≥ 5.3.0 < 5.3.8 |
5.3.8 |
— |
| Maven | org.springframework.security:spring-security-web |
< 5.2.9 |
5.2.9 |
— |
Per OSV / GitHub Advisories (GHSA-gq28-h5vg-8prx). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| pivotal_software | spring_security | < 5.2.9 |
| pivotal_software | spring_security | ≥ 5.3.0 < 5.3.8 |
| vmware | spring_security | ≥ 5.4.0 < 5.4.4 |
| oracle | communications_element_manager | ≥ 8.2.0 ≤ 8.2.4.0 |
| oracle | communications_interactive_session_recorder | 6.3 |
| oracle | communications_interactive_session_recorder | 6.4 |
| oracle | communications_unified_inventory_management | 7.4.1 |
| oracle | hospitality_cruise_shipboard_property_management_system | 20.1.0 |
| oracle | insurance_policy_administration | 11.2.0 |
| oracle | insurance_policy_administration | 11.3.0 |
| oracle | mysql_enterprise_monitor | ≤ 8.0.25 |
Official sources
References
Links published by the sources. Open them with care.
- www.openwall.com Mailing List Third Party Advisory
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- tanzu.vmware.com Vendor Advisory
- www.oracle.com Third Party Advisory
- www.oracle.com Patch Third Party Advisory
- www.oracle.com Patch Third Party Advisory