Skip to content
Fencer Vulns
high 7.8

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

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 jenkins
    affected: no fix planned “Will not fix”
  • Red Hat Fuse 7.10
    fixed: vendor fix RHSA-2021:5134
  • Red Hat Integration
    fixed: 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-webmvc
    +1 more products
    Red Hat support for Spring Boot opentracing-spring-web opentracing-spring-web
    not affected: vulnerable code not present

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
  • CWE-269 Improper Privilege Management
  • CWE-668 Exposure of Resource to Wrong Sphere
Technology feeds

References

Sources

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.