Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.springframework.security/spring-security-core
  4. ›
  5. CVE-2021-22112

CVE-2021-22112: Privilege Escalation

February 23, 2021 (updated June 14, 2023)

Spring Security 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.

References

  • nvd.nist.gov/vuln/detail/CVE-2021-22112
  • tanzu.vmware.com/security/cve-2021-22112

Code Behaviors & Features

Detect and mitigate CVE-2021-22112 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.2.9, all versions starting from 5.3.0 before 5.3.9, all versions starting from 5.4.0 before 5.4.4

Fixed versions

  • 5.4.4
  • 5.3.9
  • 5.2.9

Solution

Upgrade to versions 5.2.9, 5.3.9, 5.4.4 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Source file

maven/org.springframework.security/spring-security-core/CVE-2021-22112.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:55 +0000.