{"cve":"CVE-2021-22112","nvd":{"published":"2021-02-23T19:15:13.573","modified":"2026-06-17T03:36:38.150","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8},"cwes":[],"references":["http://www.openwall.com/lists/oss-security/2021/02/19/7","https://lists.apache.org/thread.html/r163b3e4e39803882f5be05ee8606b2b9812920e196daa2a82997ce14%40%3Cpluto-dev.portals.apache.org%3E","https://lists.apache.org/thread.html/r2cb05e499807900ba23e539643eead9c5f0652fd271f223f89da1804%40%3Cpluto-scm.portals.apache.org%3E","https://lists.apache.org/thread.html/r37423ec7eea340e92a409452c35b649dce02fdc467f0b3f52086c177%40%3Cpluto-dev.portals.apache.org%3E","https://lists.apache.org/thread.html/r3868207b967f926819fe3aa8d33f1666429be589bb4a62104a49f4e3%40%3Cpluto-dev.portals.apache.org%3E"],"products":["oracle:communications_element_manager","oracle:communications_interactive_session_recorder","oracle:communications_unified_inventory_management","oracle:hospitality_cruise_shipboard_property_management_system","oracle:insurance_policy_administration","oracle:mysql_enterprise_monitor","pivotal_software:spring_security","vmware:spring_security"],"source":"nvd","synced_at":"2026-10-19T21:15:50.279857260+00:00"},"epss":{"cve":"CVE-2021-22112","score":0.03286,"percentile":0.8847,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-gq28-h5vg-8prx","url":"https://osv.dev/vulnerability/GHSA-gq28-h5vg-8prx","summary":"Privilege escalation in spring security","modified":"2024-03-15T05:19:47.375850Z","packages":[{"ecosystem":"Maven","name":"org.springframework.security:spring-security-bom","purl":"pkg:maven/org.springframework.security/spring-security-bom","ranges":[">=5.4.0 <5.4.4"],"fixed":["5.4.4"]},{"ecosystem":"Maven","name":"org.springframework.security:spring-security-bom","purl":"pkg:maven/org.springframework.security/spring-security-bom","ranges":[">=5.3.0 <5.3.8"],"fixed":["5.3.8"]},{"ecosystem":"Maven","name":"org.springframework.security:spring-security-bom","purl":"pkg:maven/org.springframework.security/spring-security-bom","ranges":["<5.2.9"],"fixed":["5.2.9"]},{"ecosystem":"Maven","name":"org.springframework.security:spring-security-web","purl":"pkg:maven/org.springframework.security/spring-security-web","ranges":[">=5.4.0 <5.4.4"],"fixed":["5.4.4"]},{"ecosystem":"Maven","name":"org.springframework.security:spring-security-web","purl":"pkg:maven/org.springframework.security/spring-security-web","ranges":[">=5.3.0 <5.3.8"],"fixed":["5.3.8"]},{"ecosystem":"Maven","name":"org.springframework.security:spring-security-web","purl":"pkg:maven/org.springframework.security/spring-security-web","ranges":["<5.2.9"],"fixed":["5.2.9"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}