CVE-2021-22112
February 23, 2021
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.
Affected Packages
org.springframework.security:spring-security-web (JAVA):
Affected version(s) >=4.2.0.RELEASE <4.2.20-spring-security-4.2.21Fix Suggestion:
Update to version 4.2.20-spring-security-4.2.21org.springframework.security:spring-security-bom (JAVA):
Affected version(s) >=5.4.0 <5.4.4Fix Suggestion:
Update to version 5.4.4org.springframework.security:spring-security-web (JAVA):
Affected version(s) >=5.4.0 <5.4.4Fix Suggestion:
Update to version 5.4.4Related ResourcesĀ (29)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.8
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
CVSS v2
Base Score:
9
Access Vector
NETWORK
Access Complexity
LOW
Authentication
SINGLE
Confidentiality Impact
COMPLETE
Integrity Impact
COMPLETE
Availability Impact
COMPLETE
Weakness Type (CWE)
Improper Privilege Management
EPSS
Base Score:
0.98