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-2022-23181

CVE-2022-23181: Apache Tomcat Privilege Escalation Flaw

CVE-2022-23181 is a privilege escalation vulnerability in Apache Tomcat that enables local attackers to execute actions with elevated privileges. This article covers technical details, affected versions, and mitigation.

Published: February 17, 2026

CVE-2022-23181 Overview

CVE-2022-23181 is a Time-of-Check Time-of-Use (TOCTOU) race condition vulnerability in Apache Tomcat that was inadvertently introduced while fixing CVE-2020-9484. This vulnerability affects Apache Tomcat versions 10.1.0-M1 to 10.1.0-M8, 10.0.0-M5 to 10.0.14, 9.0.35 to 9.0.56, and 8.5.55 to 8.5.73. The flaw allows a local attacker to perform actions with the privileges of the Tomcat process user when Tomcat is configured to persist sessions using the FileStore.

Critical Impact

Local attackers can escalate privileges to the Tomcat process user level, potentially compromising session data integrity and executing unauthorized actions on systems using FileStore session persistence.

Affected Products

  • Apache Tomcat 10.1.0-M1 to 10.1.0-M8
  • Apache Tomcat 10.0.0-M5 to 10.0.14
  • Apache Tomcat 9.0.35 to 9.0.56
  • Apache Tomcat 8.5.55 to 8.5.73
  • Oracle Agile Engineering Data Management 6.2.1.0
  • Oracle Communications Cloud Native Core Policy 1.15.0
  • Oracle Financial Services Crime and Compliance Management Studio 8.0.8.2.0 and 8.0.8.3.0
  • Oracle Managed File Transfer 12.2.1.3.0 and 12.2.1.4.0
  • Oracle MySQL Enterprise Monitor
  • Debian Linux 10.0 and 11.0

Discovery Timeline

  • 2022-01-27 - CVE-2022-23181 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-23181

Vulnerability Analysis

This vulnerability is classified as CWE-367 (Time-of-Check Time-of-Use Race Condition). The flaw was introduced as a regression during the remediation of a prior deserialization vulnerability (CVE-2020-9484) in Apache Tomcat's session persistence mechanism.

When Tomcat is configured to use the FileStore for session persistence, there exists a time window between the security check (validating session file access) and the actual use of that file. A local attacker who can time their actions precisely during this window can manipulate the session file operations to execute actions with the elevated privileges of the Tomcat process.

The attack requires local access to the system and the ability to write to the session storage directory, making it exploitable only in specific deployment configurations. Organizations running Tomcat with FileStore session persistence in multi-user environments are particularly at risk.

Root Cause

The root cause stems from the security fix for CVE-2020-9484, which introduced an improper synchronization mechanism in the FileStore session persistence code. The fix created a race condition where the time between checking file permissions and actually operating on the file creates an exploitable window. During this gap, an attacker can substitute or modify the session file, causing Tomcat to operate on a malicious file with its process privileges.

Attack Vector

The attack vector is local, requiring the attacker to have access to the same system where Tomcat is running. The attacker must be able to:

  1. Identify that Tomcat is configured to use FileStore for session persistence
  2. Locate the session storage directory
  3. Time file operations to exploit the race condition window
  4. Substitute or manipulate session files between the check and use operations

This attack is most feasible in shared hosting environments or systems where multiple users have access to the Tomcat server filesystem. The exploitation requires precise timing and local filesystem access, which limits the attack surface but can be devastating when successful.

Detection Methods for CVE-2022-23181

Indicators of Compromise

  • Unexpected file modifications in the Tomcat session storage directory (typically $CATALINA_HOME/work/Catalina/<hostname>/<webapp>/)
  • Unusual process activity under the Tomcat user account
  • Rapid file creation and deletion patterns in session directories indicating race condition exploitation attempts

Detection Strategies

  • Monitor filesystem operations on session storage directories for suspicious timing patterns
  • Implement file integrity monitoring (FIM) on Tomcat's session persistence directories
  • Review Tomcat access logs for anomalous session ID patterns that might indicate session manipulation

Monitoring Recommendations

  • Enable detailed audit logging for the Tomcat process user and session directory access
  • Configure SIEM alerts for unusual local privilege escalation patterns involving the Tomcat user
  • Monitor for rapid consecutive file operations in FileStore directories that could indicate exploitation attempts

How to Mitigate CVE-2022-23181

Immediate Actions Required

  • Upgrade Apache Tomcat to a patched version: 10.1.0-M10 or later, 10.0.16 or later, 9.0.58 or later, or 8.5.75 or later
  • If immediate patching is not possible, disable FileStore session persistence and switch to alternative session managers
  • Review and restrict filesystem permissions on session storage directories to limit local user access

Patch Information

Apache has released security patches addressing this vulnerability. Administrators should update to the following minimum versions:

  • Tomcat 10.1.x: Update to 10.1.0-M10 or later
  • Tomcat 10.0.x: Update to 10.0.16 or later
  • Tomcat 9.0.x: Update to 9.0.58 or later
  • Tomcat 8.5.x: Update to 8.5.75 or later

For detailed patch information, refer to the Apache Mailing List Thread and the Oracle Critical Patch Update April 2022.

Workarounds

  • Disable FileStore session persistence by configuring an alternative session manager such as PersistentManager with JDBCStore or in-memory session storage
  • Restrict local user access to the Tomcat server to minimize the attack surface
  • Implement strict filesystem permissions on the session storage directory, limiting access exclusively to the Tomcat process user
bash
# Configuration example - Switch from FileStore to JDBC session persistence
# In context.xml, replace FileStore configuration with JDBCStore:

# Remove or comment out FileStore configuration:
# <Manager className="org.apache.catalina.session.PersistentManager">
#   <Store className="org.apache.catalina.session.FileStore"/>
# </Manager>

# Or restrict session directory permissions (temporary workaround):
chmod 700 $CATALINA_HOME/work/Catalina/localhost/
chown tomcat:tomcat $CATALINA_HOME/work/Catalina/localhost/

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechApache Tomcat

  • SeverityHIGH

  • CVSS Score7.0

  • EPSS Probability0.24%

  • 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-367
  • Technical References
  • Debian LTS Security Announcement

  • NetApp Security Advisory NTAP-20220217-0010

  • Debian Security Advisory DSA-5265
  • Vendor Resources
  • Apache Mailing List Thread

  • Oracle Critical Patch Update April 2022

  • Oracle Critical Patch Update July 2022
  • Related CVEs
  • CVE-2024-22029: Tomcat Privilege Escalation Vulnerability

  • CVE-2024-52318: Apache Tomcat Privilege Escalation Flaw

  • CVE-2020-8022: Apache Tomcat Privilege Escalation Flaw

  • CVE-2026-34500: Apache Tomcat Auth Bypass Vulnerability
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