CVE-2021-22118 json
Improper Privilege Management in Spring Framework
published 2021-05-27 5 y ago modified 2026-06-17 4 mo ago also GHSA-gfwj-fwqj-fp3v , EUVD-2022-3947
- cvss
- 7.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 32%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven org.springframework:spring-web 5.2.15, 5.3.7
- vmware spring_framework 5.2.15, 5.3.7
- github.com/spring-projects/spring-framework@0d0d75e commit
- github.com/spring-projects/spring-framework@cce60c4 commit
- oracle.com//security-alerts/cpujul2021.html advisory
- oracle.com/security-alerts/cpuoct2021.html advisory
- oracle.com/security-alerts/cpujan2022.html advisory
- oracle.com/security-alerts/cpuapr2022.html advisory
- oracle.com/security-alerts/cpujul2022.html advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-22118 updated cvss 7.1
spring-web: (re)creating the temporary storage directory could result in a privilege escalation within WebFlux application
-
Red Hat OpenShift Container Platform 3.11 jenkins Red Hat OpenShift Container Platform 4 jenkinsaffected: no fix planned “Will not fix”
-
Red Hat Fuse 7.10fixed: vendor fix RHSA-2021:5134
-
Red Hat Integrationfixed: vendor fix RHSA-2021:3205
-
Red Hat AMQ Broker 7 spring-web Red Hat Decision Manager 7 spring-web, spring-webmvc Red Hat Fuse 7 spring-webmvc Red Hat JBoss A-MQ 6 spring-web Red Hat JBoss Fuse 6 spring-web, spring-webmvc Red Hat Process Automation 7 spring-web, spring-webmvcnot affected: vulnerable code not present
+1 more productsfewer
Red Hat support for Spring Boot opentracing-spring-web opentracing-spring-web
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.38% chance of exploitation in the next 30 days, higher than 32% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 4.6 | AV:L/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.springframework:spring-web | >=5.2.0, <5.2.15 >=5.3.0, <5.3.7 |
5.2.15 5.3.7 |
Affected products
- n/a Spring Framework
Classification
- Weakness
- Technology feeds
References
-
oracle.com
//security-alerts/cpujul2021.html
web, patch, third-party-advisory
-
oracle.com
/security-alerts/cpuoct2021.html
web, patch, third-party-advisory
-
oracle.com
/security-alerts/cpujan2022.html
web, patch, third-party-advisory
-
oracle.com
/security-alerts/cpuapr2022.html
web, patch, third-party-advisory
-
oracle.com
/security-alerts/cpujul2022.html
web, patch, third-party-advisory
-
github.com
/spring-projects/spring-framework/commit/0d0d75e25322d8161002d861fff3ec04ba8be5ac
web
-
github.com
/spring-projects/spring-framework/commit/cce60c479c22101f24b2b4abebb6d79440b120d1
web
-
tanzu.vmware.com
/security/cve-2021-22118
web, third-party-advisory
-
security.netapp.com
/advisory/ntap-20210713-0005/
third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-22118
advisory
-
github.com
/spring-projects/spring-framework/issues/26931
web
-
github.com
/spring-projects/spring-framework
package
-
security.netapp.com
/advisory/ntap-20210713-0005
web
-
spring.io
/security/cve-2021-22118
web
Sources
- CVE List CVE-2021-22118
- GitHub Advisory GHSA-gfwj-fwqj-fp3v
- NVD CVE-2021-22118
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.