Live threats

All CVEs / Pivotal Software

CVE-2021-22112Pivotal Software Spring Security

High 8.8

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Spring Security.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
pivotal_softwarespring_security< 5.2.9
pivotal_softwarespring_security≥ 5.3.0 < 5.3.8
vmwarespring_security≥ 5.4.0 < 5.4.4
oraclecommunications_element_manager≥ 8.2.0 ≤ 8.2.4.0
oraclecommunications_interactive_session_recorder6.3
oraclecommunications_interactive_session_recorder6.4
oraclecommunications_unified_inventory_management7.4.1
oraclehospitality_cruise_shipboard_property_management_system20.1.0
oracleinsurance_policy_administration11.2.0
oracleinsurance_policy_administration11.3.0
oraclemysql_enterprise_monitor≤ 8.0.25

Official sources

References

Links published by the sources. Open them with care.