Improper Privilege Management in Spring Framework
Published 24 May 2022 · Updated 20 Feb 2024
Is your project on an affected org.springframework:spring-web?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- >=5.2.0 <5.2.15
- Fixed in
- 5.2.15
mvn versions:use-dep-version -Dincludes=org.springframework:spring-web -DdepVersion=5.2.15 -DforceVersion=true- Affected
- >=5.3.0 <5.3.7
- Fixed in
- 5.3.7
mvn versions:use-dep-version -Dincludes=org.springframework:spring-web -DdepVersion=5.3.7 -DforceVersion=trueDetails
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.
Is GHSA-gfwj-fwqj-fp3v in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.springframework:spring-web, and gives you the command that fixes it.
More advisories for org.springframework:spring-web
- MediumCVE-2026-41854Spring Framework Server-Side Request Forgery via UriComponentsBuilder · 9 Jun 2026
- MediumCVE-2025-41234Spring Framework vulnerable to a reflected file download (RFD) · 13 Jun 2025
- MediumCVE-2024-38820Spring Framework DataBinder Case Sensitive Match Exception · 18 Oct 2024
- MediumCVE-2024-38809Spring Framework DoS via conditional HTTP request · 24 Sept 2024
- HighCVE-2024-22262Spring Framework URL Parsing with Host Validation · 16 Apr 2024
- HighCVE-2024-22259Spring Framework URL Parsing with Host Validation Vulnerability · 16 Mar 2024
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2021-22118
- Linkgithub.com/spring-projects/spring-framework/issues/26931
- Linkgithub.com/spring-projects/spring-framework/commit/0d0d75e25322d8161002d861fff3ec04ba8be5ac
- Linkgithub.com/spring-projects/spring-framework/commit/cce60c479c22101f24b2b4abebb6d79440b120d1
- Packagegithub.com/spring-projects/spring-framework
- Linksecurity.netapp.com/advisory/ntap-20210713-0005
- Linkspring.io/security/cve-2021-22118
- Linktanzu.vmware.com/security/cve-2021-22118
- Linkwww.oracle.com//security-alerts/cpujul2021.html
- Linkwww.oracle.com/security-alerts/cpuapr2022.html
- Linkwww.oracle.com/security-alerts/cpujan2022.html
- Linkwww.oracle.com/security-alerts/cpujul2022.html
- Linkwww.oracle.com/security-alerts/cpuoct2021.html
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.