VDB

CVE-2021-22112

CVE-2021-22112 PUBLISHED

Privilege escalation in spring security

Reported by vmware · Published February 23, 2021

spring-security-bom is fixed in 5.4.4, 5.3.9 and 5.2.9 (Maven Central)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
org.springframework.security:spring-security-bomMaven Central5.4.4, 5.3.9, 5.2.9
org.springframework.security:spring-security-coreMaven Central5.4.4, 5.3.9, 5.2.9
org.springframework.security:spring-security-webMaven Central5.4.4, 5.3.8, 5.2.9
jenkinsArch Linux2.280-1
spring_securityvmware5.4.4
spring_securitypivotal_software5.3.8, 5.2.9
communications_element_manageroracle8.2.4.0

Affected products

VendorProductVersions
n/aSpring Security5.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
n/aSpring Security5.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

Timeline

  • Feb 23, 2021 CVE Published
  • Feb 23, 2021 PoC Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Nov 21, 2024 CVE Updated
  • Mar 20, 2026 Security Advisory (5 in total, the first dated here)
  • Mar 20, 2026 Distribution Patch (3 in total, the first dated here)
  • Aug 25, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-22112
vulnetix vdb fixes CVE-2021-22112

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-22112/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›