CVE-2021-22118
Improper Privilege Management in Spring Framework
Description
In Spring Framework, versions 5.2.x prior to 5.2.15 and versions 5.3.x prior to 5.3.7, a WebFlux application is vulnerable to a privilege escalation: by (re)creating the temporary storage directory, a locally authenticated malicious user can read or modify files that have been uploaded to the WebFlux application, or overwrite arbitrary files with multipart request data.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework » spring-web | >= 5.2.0, < 5.2.15>= 5.3.0, < 5.3.7 | 5.2.15, 5.3.7 |
Blast radius
43% of the dependent artifacts (4,600) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 31,212 |
| 2 hops | 50,028 |
| 3 hops | 43,505 |
| 4 hops | 14,379 |
| 5 hops | 5,289 |
| 6 hops | 1,404 |
Most used dependents
- org.springframework.boot » spring-boot-starter-web19,081 usages
- org.springframework » spring-webmvc7,538 usages
- org.springframework.boot » spring-boot-starter-security3,606 usages
- org.springframework.boot » spring-boot-starter-webflux2,764 usages
- org.springframework.security » spring-security-web2,133 usages
- org.springframework.cloud » spring-cloud-starter-openfeign1,389 usages
- org.springframework.boot » spring-boot-starter-websocket1,319 usages
- org.springframework.security » spring-security-test1,308 usages
- org.springframework » spring-webflux1,283 usages
- org.springframework.cloud » spring-cloud-commons1,205 usages
- org.jenkins-ci.main » jenkins-core1,191 usages
- org.springframework.cloud » spring-cloud-starter-config978 usages
- org.springdoc » springdoc-openapi-ui786 usages
- org.springframework.boot » spring-boot-starter-json743 usages
- org.springframework.cloud » spring-cloud-starter-netflix-eureka-client684 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2021-22118
- Webhttps://github.com/spring-projects/spring-framework/issues/26931
- Webhttps://github.com/spring-projects/spring-framework/commit/0d0d75e25322d8161002d861fff3ec04ba8be5ac
- Webhttps://github.com/spring-projects/spring-framework/commit/cce60c479c22101f24b2b4abebb6d79440b120d1
- Packagehttps://github.com/spring-projects/spring-framework
- Webhttps://security.netapp.com/advisory/ntap-20210713-0005
- Webhttps://spring.io/security/cve-2021-22118
- Webhttps://tanzu.vmware.com/security/cve-2021-22118
- Webhttps://www.oracle.com//security-alerts/cpujul2021.html
- Webhttps://www.oracle.com/security-alerts/cpuapr2022.html
- Webhttps://www.oracle.com/security-alerts/cpujan2022.html
- Webhttps://www.oracle.com/security-alerts/cpujul2022.html
- Webhttps://www.oracle.com/security-alerts/cpuoct2021.html
