CVE-2021-22112: Critical severity spring security vulnerability

Published Feb 23, 2021
·
Updated

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 Software

11 affected components
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

Event History

Feb 23, 2021
CVE Published
via MITRE·06:48 PM
Data Sourced
via MITRE·06:48 PM
DescriptionWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID?

The vulnerability ID is CVE-2021-22112.

2

What is the severity of CVE-2021-22112?

The severity of CVE-2021-22112 is critical.

3

Which versions of Spring Security are affected by CVE-2021-22112?

Spring Security 5.4.x prior to 5.4.4, 5.3.x prior to 5.3.8.RELEASE, and 5.2.x prior to 5.2.9.RELEASE are affected.

4

How can the SecurityContext be saved in Spring Security?

The SecurityContext can be saved using the `SecurityContextHolder.setContext()` method.

5

How can I fix CVE-2021-22112 in Spring Security?

To fix CVE-2021-22112, upgrade to Spring Security 5.4.4, 5.3.8.RELEASE, or 5.2.9.RELEASE.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203