Security mailing lists by PureSourceCode

CVE-2021-22112

HIGH 8.8CVSS 3.1

Privilege escalation in spring security

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.

Published
23 Feb 2021
Last modified
17 Jun 2026
Assigned by
security@vmware.com
NVD status
Modified
Weakness
CWE-269
Also known as
GHSA-gq28-h5vg-8prx
Sources
NVDJSONOSV GHSA-gq28-h5vg-8prxJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 HIGH 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 HIGH 9.0 AV:N/AC:L/Au:S/C:C/I:C/A:C

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD pivotal_software spring_security
cpe:2.3:a:pivotal_software:spring_security:*:*:*:*:*:*:*:*
< 5.2.9 5.2.9
NVD pivotal_software spring_security
cpe:2.3:a:pivotal_software:spring_security:*:*:*:*:*:*:*:*
>= 5.3.0, < 5.3.8 5.3.8
NVD vmware spring_security
cpe:2.3:a:vmware:spring_security:*:*:*:*:*:*:*:*
>= 5.4.0, < 5.4.4 5.4.4
NVD oracle communications_element_manager
cpe:2.3:a:oracle:communications_element_manager:*:*:*:*:*:*:*:*
>= 8.2.0, <= 8.2.4.0
NVD oracle communications_interactive_session_recorder
cpe:2.3:a:oracle:communications_interactive_session_recorder:6.3:*:*:*:*:*:*:*
= 6.3
NVD oracle communications_interactive_session_recorder
cpe:2.3:a:oracle:communications_interactive_session_recorder:6.4:*:*:*:*:*:*:*
= 6.4
NVD oracle communications_unified_inventory_management
cpe:2.3:a:oracle:communications_unified_inventory_management:7.4.1:*:*:*:*:*:*:*
= 7.4.1
NVD oracle hospitality_cruise_shipboard_property_management_system
cpe:2.3:a:oracle:hospitality_cruise_shipboard_property_management_system:20.1.0:*:*:*:*:*:*:*
= 20.1.0
NVD oracle insurance_policy_administration
cpe:2.3:a:oracle:insurance_policy_administration:11.2.0:*:*:*:*:*:*:*
= 11.2.0
NVD oracle insurance_policy_administration
cpe:2.3:a:oracle:insurance_policy_administration:11.3.0:*:*:*:*:*:*:*
= 11.3.0
NVD oracle mysql_enterprise_monitor
cpe:2.3:a:oracle:mysql_enterprise_monitor:*:*:*:*:*:*:*:*
<= 8.0.25
OSV Maven org.springframework.security:spring-security-bom >= 5.4.0, < 5.4.4 5.4.4
OSV Maven org.springframework.security:spring-security-bom >= 5.3.0, < 5.3.8 5.3.8
OSV Maven org.springframework.security:spring-security-bom < 5.2.9 5.2.9
OSV Maven org.springframework.security:spring-security-web >= 5.4.0, < 5.4.4 5.4.4
OSV Maven org.springframework.security:spring-security-web >= 5.3.0, < 5.3.8 5.3.8
OSV Maven org.springframework.security:spring-security-web < 5.2.9 5.2.9

References

History

  • 25 Nov 2026 20:32 UTC · NVD: first stored (published 23 Feb 2021)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 10 May 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.