HIGH7.8
GHSA-gfwj-fwqj-fp3v
Improper Privilege Management in Spring Framework
Quick fix
GHSA-gfwj-fwqj-fp3v — org.springframework:spring-web: upgrade to the fixed version with the command below.
# pom.xml: bump <version>5.2.15</version> for org.springframework:spring-webDetails
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
Maven/org.springframework:spring-web
Introduced in:
5.2.0Fixed in: 5.2.15Fix
# pom.xml: bump <version>5.2.15</version> for org.springframework:spring-webMaven/org.springframework:spring-web
Introduced in:
5.3.0Fixed in: 5.3.7Fix
# pom.xml: bump <version>5.3.7</version> for org.springframework:spring-webReferences
- https://nvd.nist.gov/vuln/detail/CVE-2021-22118[ADVISORY]
- https://github.com/spring-projects/spring-framework/issues/26931[WEB]
- https://github.com/spring-projects/spring-framework/commit/0d0d75e25322d8161002d861fff3ec04ba8be5ac[WEB]
- https://github.com/spring-projects/spring-framework/commit/cce60c479c22101f24b2b4abebb6d79440b120d1[WEB]
- https://github.com/spring-projects/spring-framework[PACKAGE]
- https://security.netapp.com/advisory/ntap-20210713-0005[WEB]
- https://spring.io/security/cve-2021-22118[WEB]
- https://tanzu.vmware.com/security/cve-2021-22118[WEB]
- https://www.oracle.com//security-alerts/cpujul2021.html[WEB]
- https://www.oracle.com/security-alerts/cpuapr2022.html[WEB]
- https://www.oracle.com/security-alerts/cpujan2022.html[WEB]
- https://www.oracle.com/security-alerts/cpujul2022.html[WEB]
- https://www.oracle.com/security-alerts/cpuoct2021.html[WEB]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:maven/org.springframework/spring-web"]}'