The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-2026-40973

CVE-2026-40973: VMware Spring Boot Privilege Escalation

CVE-2026-40973 is a privilege escalation vulnerability in VMware Spring Boot allowing local attackers to hijack sessions and execute code. This article covers technical details, affected versions, impact, and mitigation.

Published: April 30, 2026

CVE-2026-40973 Overview

CVE-2026-40973 is a high-severity vulnerability affecting VMware Spring Boot that allows a local attacker on the same host as the application to take control of the directory used by ApplicationTemp. When server.servlet.session.persistent is set to true and the attack persists across application restarts, this vulnerability may allow the attacker to read session information and hijack authenticated users or deploy a gadget chain and execute code as the application's user.

This vulnerability stems from insecure temporary file handling (CWE-377), where the application fails to properly verify ownership of the temporary directory, creating a race condition that attackers can exploit.

Critical Impact

Local attackers can hijack user sessions, read sensitive session data, or achieve arbitrary code execution by exploiting predictable temp directory paths and insufficient ownership verification in Spring Boot applications.

Affected Products

  • VMware Spring Boot 4.0.0–4.0.5 (fix in version 4.0.6)
  • VMware Spring Boot 3.5.0–3.5.13 (fix in version 3.5.14)
  • VMware Spring Boot 3.4.0–3.4.15 (fix in version 3.4.16)
  • VMware Spring Boot 3.3.0–3.3.18 (fix in version 3.3.19)
  • VMware Spring Boot 2.7.0–2.7.32 (fix in version 2.7.33)

Discovery Timeline

  • 2026-04-28 - CVE CVE-2026-40973 published to NVD
  • 2026-04-30 - Last updated in NVD database

Technical Details for CVE-2026-40973

Vulnerability Analysis

This vulnerability exploits a weakness in how Spring Boot handles temporary directories through the ApplicationTemp class. The core issue lies in the predictable nature of temporary directory paths combined with inadequate ownership verification when the application accesses these directories.

When server.servlet.session.persistent is enabled, Spring Boot stores session data in a temporary directory to maintain session state across application restarts. A local attacker with access to the same host can anticipate the temporary directory location and create or take control of it before the application does. This creates a Time-of-Check Time-of-Use (TOCTOU) race condition scenario.

The vulnerability has significant security implications. An attacker who successfully takes control of the ApplicationTemp directory can read serialized session objects, potentially extracting authentication tokens, session identifiers, and other sensitive user data. More critically, if the application deserializes objects from this directory, the attacker could plant malicious serialized objects containing gadget chains that execute arbitrary code when deserialized by the application.

Root Cause

The root cause is CWE-377: Insecure Temporary File handling. Spring Boot's ApplicationTemp implementation does not adequately verify the ownership and permissions of the temporary directory before use. The predictable naming convention for temporary directories allows local attackers to preemptively create directories with the expected names, establishing control before the legitimate application accesses them. This lack of proper validation enables symlink attacks, directory hijacking, and unauthorized access to session persistence data.

Attack Vector

The attack requires local access to the host running the Spring Boot application. The attacker must have sufficient permissions to create directories in the system's temporary file location (typically /tmp on Unix-like systems or %TEMP% on Windows).

The exploitation flow involves identifying the target Spring Boot application and determining its temporary directory naming pattern. The attacker then creates a directory matching the expected ApplicationTemp path before the application starts or restarts. Once the application runs and writes session data to this attacker-controlled directory, the attacker can read session files to extract credentials and tokens, or inject malicious serialized objects that will be deserialized by the application, leading to code execution under the application's user context.

The attack complexity is high because it requires local access and precise timing around application restarts, but the potential impact is severe, affecting confidentiality, integrity, and availability of the system.

Detection Methods for CVE-2026-40973

Indicators of Compromise

  • Unexpected ownership or permissions changes on Spring Boot temporary directories
  • Suspicious processes accessing or monitoring temporary file locations before application startup
  • Anomalous session activity indicating potential session hijacking
  • Serialized Java objects in temporary directories with unexpected modification times or ownership

Detection Strategies

  • Monitor file system events for directory creation in common temporary locations that match Spring Boot naming patterns
  • Implement audit logging for access to ApplicationTemp directories and session persistence files
  • Use integrity monitoring tools to detect unauthorized modifications to temporary directories
  • Review application logs for deserialization errors or unexpected class loading that may indicate gadget chain exploitation attempts

Monitoring Recommendations

  • Configure SentinelOne agents to monitor process behavior around temporary file operations during application startup sequences
  • Implement real-time alerting for permission changes on directories used by Spring Boot applications
  • Establish baseline normal behavior for temporary directory access patterns to identify anomalous activity
  • Enable Java deserialization monitoring to detect potential gadget chain exploitation attempts

How to Mitigate CVE-2026-40973

Immediate Actions Required

  • Upgrade to patched Spring Boot versions: 4.0.6, 3.5.14, 3.4.16, 3.3.19, or 2.7.33 immediately
  • Review all Spring Boot applications to identify those with server.servlet.session.persistent=true configured
  • Audit current temporary directory permissions and ownership for running Spring Boot applications
  • Consider disabling session persistence temporarily until patches can be applied

Patch Information

VMware has released security patches addressing the ApplicationTemp ownership verification vulnerability. Organizations should upgrade to the following fixed versions based on their current Spring Boot branch:

Current Version RangeFixed Version
4.0.0–4.0.54.0.6
3.5.0–3.5.133.5.14
3.4.0–3.4.153.4.16
3.3.0–3.3.183.3.19
2.7.0–2.7.322.7.33

For detailed patch information and upgrade guidance, refer to the Spring Security Advisory.

Workarounds

  • Disable session persistence by setting server.servlet.session.persistent=false in application properties
  • Configure a dedicated secure directory for ApplicationTemp with restrictive permissions (e.g., mode 0700)
  • Use container isolation to limit local attacker access to the application's file system namespace
  • Implement additional access controls on the host system to restrict which users can create directories in temporary locations
bash
# Configuration example - Secure temporary directory configuration
# Set a dedicated temp directory with restricted permissions
mkdir -p /opt/spring-app/secure-temp
chmod 0700 /opt/spring-app/secure-temp
chown appuser:appgroup /opt/spring-app/secure-temp

# Configure Spring Boot to use the secure directory
# Add to application.properties or environment variable:
# spring.application.temp=/opt/spring-app/secure-temp

# Or disable session persistence entirely:
# server.servlet.session.persistent=false

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechVmware Spring Boot

  • SeverityHIGH

  • CVSS Score7.0

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-377
  • Vendor Resources
  • Spring Security Advisory
  • Related CVEs
  • CVE-2026-40977: VMware Spring Boot Privilege Escalation

  • CVE-2026-40972: VMware Spring Boot RCE Vulnerability

  • CVE-2026-40975: VMware Spring Boot Information Disclosure

  • CVE-2026-40976: VMware Spring Boot Auth Bypass 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