cve.bz

CVE-2021-22118 Exposure of Resource to Wrong Sphere

7.8 highEPSS 0.4%Fix available

High (7.8). EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in org.springframework:spring-web 5.2.15, 5.3.7.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 33rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-668 Exposure of Resource to Wrong Sphere
CWE-269 Improper Privilege Management
OWASP Top 10
A01:2025 Broken Access Control, A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-22118 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-22118?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-22118?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-22118 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
vmware:spring_frameworkfrom 5.2.0 before 5.2.15
vmware:spring_frameworkfrom 5.3.0 before 5.3.7
oracle:commerce_guided_search11.3.2
oracle:communications_brm_-_elastic_charging_engine12.0.0.3
oracle:communications_cloud_native_core_binding_support_function1.9.0
oracle:communications_cloud_native_core_policy1.14.0
oracle:communications_cloud_native_core_security_edge_protection_proxy1.6.0
oracle:communications_cloud_native_core_service_communication_proxy1.14.0
oracle:communications_cloud_native_core_unified_data_repository1.14.0
oracle:communications_diameter_intelligence_hubfrom 8.0.0 through 8.1.0
oracle:communications_diameter_intelligence_hubfrom 8.2.0 through 8.2.3
oracle:communications_element_managerfrom 8.2.0 through 8.2.4.0
oracle:communications_interactive_session_recorder6.4
oracle:communications_network_integrity7.3.6
oracle:communications_session_report_managerfrom 8.0.0 through 8.2.4.0
oracle:communications_session_route_managerfrom 8.0.0 through 8.2.4.0
oracle:communications_unified_inventory_management7.4.1
oracle:communications_unified_inventory_management7.4.2
oracle:communications_unified_inventory_management7.5.0
oracle:documakerfrom 12.6.0 through 12.6.4
oracle:enterprise_data_quality12.2.1.3.0
oracle:enterprise_data_quality12.2.1.4.0
oracle:financial_services_analytical_applications_infrastructurefrom 8.0.8 through 8.1.1
oracle:healthcare_data_repository8.1.0
oracle:insurance_policy_administrationfrom 11.0 through 11.3.1
oracle:insurance_rules_palette11.0.2
oracle:insurance_rules_palette11.1.0
oracle:insurance_rules_palette11.2.7
oracle:insurance_rules_palette11.3.0
oracle:insurance_rules_palette11.3.1
oracle:mysql_enterprise_monitorthrough 8.0.25
oracle:retail_assortment_planning16.0
oracle:retail_customer_management_and_segmentation_foundationfrom 16.0 through 19.0
oracle:retail_financial_integration14.1.3.2
oracle:retail_financial_integration15.0.3.1
oracle:retail_financial_integration16.0.3
oracle:retail_integration_bus14.1.3.2
oracle:retail_integration_bus15.0.3.1
oracle:retail_integration_bus16.0.3
oracle:retail_merchandising_system19.0.1
oracle:retail_order_broker16.0
oracle:retail_predictive_application_server14.1.3
oracle:retail_predictive_application_server15.0.3
oracle:retail_predictive_application_server16.0.3
oracle:utilities_testing_accelerator6.0.0.1.1
oracle:utilities_testing_accelerator6.0.0.2.2
oracle:utilities_testing_accelerator6.0.0.3.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-gfwj-fwqj-fp3vMavenorg.springframework:spring-web>=5.2.0 <5.2.155.2.15
GHSA-gfwj-fwqj-fp3vMavenorg.springframework:spring-web>=5.3.0 <5.3.75.3.7

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

In OpenShift Container Platform (OCP) the jenkins package bundles the vulnerable version of spring-framework, but as Jenkins is not a type of WebFlux application is not impacted by this vulnerability. Therefore the OCP components have been marked as affected/wontfix. This may be fixed in a future release.

ProductPackageStateAdvisory
Red Hat Fuse 7.10spring-webFixed 2021-12-14RHSA-2021:5134
Red Hat IntegrationFixed 2021-08-18RHSA-2021:3205
Red Hat Integrationspring-webFixed 2021-12-02RHSA-2021:4918
Red Hat AMQ Broker 7spring-webNot affected
Red Hat Decision Manager 7spring-webNot affected
Red Hat Decision Manager 7spring-webmvcNot affected
Red Hat Fuse 7spring-webmvcNot affected
Red Hat JBoss A-MQ 6spring-webNot affected
Red Hat JBoss Fuse 6spring-webNot affected
Red Hat JBoss Fuse 6spring-webmvcNot affected
Red Hat OpenShift Container Platform 3.11jenkinsWill not fix
Red Hat OpenShift Container Platform 4jenkinsWill not fix
Red Hat Process Automation 7spring-webNot affected
Red Hat Process Automation 7spring-webmvcNot affected
Red Hat support for Spring Bootopentracing-spring-webNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-22118.

Attack patterns (CAPEC)

  • CAPEC-58 Restful Privilege Elevation Likelihood: High · Severity: High
  • CAPEC-122 Privilege Abuse Likelihood: High · Severity: Medium
  • CAPEC-233 Privilege Escalation

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON