Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-22118

CVE-2021-22118: Spring Framework Privilege Escalation Flaw

CVE-2021-22118 is a privilege escalation vulnerability in VMware Spring Framework WebFlux that allows local attackers to access or modify uploaded files. This article covers technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2021-22118 Overview

CVE-2021-22118 is a local privilege escalation vulnerability affecting VMware Spring Framework WebFlux applications. The vulnerability allows a locally authenticated malicious user to exploit insecure temporary storage directory handling to read, modify, or overwrite files associated with multipart request data processing.

In Spring Framework versions 5.2.x prior to 5.2.15 and versions 5.3.x prior to 5.3.7, WebFlux applications are vulnerable when handling multipart file uploads. By recreating the temporary storage directory used by the application, an attacker with local system access can gain unauthorized access to uploaded files or overwrite arbitrary files with attacker-controlled multipart request data.

Critical Impact

Local attackers can read sensitive uploaded data, modify application files, or overwrite arbitrary files on the system, potentially leading to data theft, application compromise, or further privilege escalation.

Affected Products

  • VMware Spring Framework 5.2.x prior to 5.2.15
  • VMware Spring Framework 5.3.x prior to 5.3.7
  • Oracle Commerce Guided Search 11.3.2
  • Oracle Communications BRM - Elastic Charging Engine 12.0.0.3
  • Oracle Communications Cloud Native Core Binding Support Function 1.9.0
  • Oracle Communications Cloud Native Core Policy 1.14.0
  • Oracle MySQL Enterprise Monitor
  • Oracle Retail Merchandising System 19.0.1
  • NetApp HCI
  • NetApp Management Services for Element Software

Discovery Timeline

  • May 27, 2021 - CVE-2021-22118 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2021-22118

Vulnerability Analysis

This vulnerability stems from improper privilege management (CWE-269) and exposure of resources to the wrong sphere (CWE-668) in Spring Framework's WebFlux component. The attack requires local access to the system where the WebFlux application is running, meaning an attacker must already have some level of authenticated access to the host machine.

The vulnerability is particularly concerning in multi-tenant environments or shared hosting scenarios where multiple users have access to the same system. Once exploited, an attacker can compromise the confidentiality and integrity of data processed by the WebFlux application.

Root Cause

The root cause lies in the insecure handling of temporary storage directories used during multipart file upload processing in WebFlux applications. The framework does not properly protect the temporary directory from being recreated or accessed by other local users. This allows a malicious local user to:

  1. Identify or predict the temporary directory location used by the WebFlux application
  2. Delete and recreate the temporary directory with permissive access controls
  3. Gain read/write access to files stored in that directory during multipart processing

Attack Vector

The attack requires local access to the system running the vulnerable WebFlux application. An attacker who has authenticated access to the local system can exploit this vulnerability by manipulating the temporary storage directory. The attack flow involves:

  1. The attacker identifies a WebFlux application processing multipart uploads
  2. The attacker locates or predicts the temporary directory path
  3. The attacker removes and recreates the temporary directory with controlled permissions
  4. When legitimate users upload files, the attacker can read the uploaded content
  5. Alternatively, the attacker can place malicious files to be processed by the application

The local attack vector means this vulnerability cannot be directly exploited remotely over a network. However, in environments where attackers have compromised a low-privileged account, this vulnerability provides a path to escalate access to sensitive data.

Detection Methods for CVE-2021-22118

Indicators of Compromise

  • Unexpected changes to temporary directory permissions or ownership in paths used by Spring WebFlux applications
  • Unusual file system activity involving /tmp or application-specific temporary directories
  • Log entries showing file access errors or permission changes during multipart upload processing
  • Evidence of directory recreation events in file system audit logs

Detection Strategies

  • Monitor file system events for deletion and recreation of temporary directories used by Java/Spring applications
  • Implement file integrity monitoring on directories used for temporary file storage
  • Configure security auditing to log permission changes on sensitive directories
  • Review application logs for anomalous multipart upload handling errors

Monitoring Recommendations

  • Enable file system auditing on temporary storage directories used by WebFlux applications
  • Implement real-time alerting for directory permission modifications in application paths
  • Monitor for suspicious local user activity around application file storage locations
  • Review system authentication logs for unusual local access patterns

How to Mitigate CVE-2021-22118

Immediate Actions Required

  • Upgrade Spring Framework 5.2.x installations to version 5.2.15 or later
  • Upgrade Spring Framework 5.3.x installations to version 5.3.7 or later
  • Review and restrict local user access on systems running WebFlux applications
  • Audit temporary directory permissions and ownership

Patch Information

VMware has released patched versions of Spring Framework that address this vulnerability. Organizations should upgrade to Spring Framework 5.2.15 or later for the 5.2.x branch, or 5.3.7 or later for the 5.3.x branch. Oracle has also addressed this vulnerability in multiple Critical Patch Updates, including July 2021, October 2021, January 2022, April 2022, and July 2022. NetApp has also issued a security advisory for affected products.

For detailed information from VMware, refer to the VMware Security Advisory.

Workarounds

  • Configure the WebFlux application to use a custom temporary directory with restrictive permissions
  • Implement strict file system permissions on temporary directories (e.g., chmod 700 with application-specific ownership)
  • Limit local user access to systems hosting WebFlux applications
  • Consider using dedicated service accounts with minimal system privileges for Spring applications
bash
# Example: Set restrictive permissions on temporary upload directory
mkdir -p /var/webflux-app/tmp
chown spring-app:spring-app /var/webflux-app/tmp
chmod 700 /var/webflux-app/tmp

# Configure Spring application to use secured temp directory
# Add to application.properties:
# spring.servlet.multipart.location=/var/webflux-app/tmp

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechSpring Framework

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.25%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-269

  • CWE-668
  • Technical References
  • NetApp Security Advisory NTAP-20210713-0005

  • VMware CVE-2021-22118 Information
  • Vendor Resources
  • Oracle CPU July 2021 Security Alerts

  • Oracle CPU April 2022 Security Alerts

  • Oracle CPU January 2022 Security Alerts

  • Oracle CPU July 2022 Security Alerts

  • Oracle CPU October 2021 Security Alerts
  • Related CVEs
  • CVE-2026-22737: Spring Framework Info Disclosure Bug

  • CVE-2025-41254: Spring Framework Auth Bypass Vulnerability

  • CVE-2025-41249: Spring Framework Auth Bypass Vulnerability

  • CVE-2025-41242: Spring Framework Path Traversal Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English