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
    • 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-2023-42795

CVE-2023-42795: Apache Tomcat Information Disclosure Flaw

CVE-2023-42795 is an information disclosure vulnerability in Apache Tomcat caused by incomplete cleanup during object recycling. This flaw allows data leakage between requests. Learn about affected versions, impact, and mitigation.

Published: February 11, 2026

CVE-2023-42795 Overview

CVE-2023-42795 is an Incomplete Cleanup vulnerability affecting Apache Tomcat, one of the most widely deployed open-source Java servlet containers. The vulnerability exists in how Tomcat recycles various internal objects during request processing. When an error occurs during the recycling process, Tomcat may skip certain cleanup steps, causing information from the current request/response to leak into subsequent requests.

This vulnerability allows attackers to potentially access sensitive information from other users' sessions or requests without authentication, as the information disclosure can occur passively through normal server operations.

Critical Impact

Information leakage between requests can expose sensitive user data, session tokens, authentication credentials, or application-specific data from one request to another user's subsequent request.

Affected Products

  • Apache Tomcat 11.0.0-M1 through 11.0.0-M11
  • Apache Tomcat 10.1.0-M1 through 10.1.13
  • Apache Tomcat 9.0.0-M1 through 9.0.80
  • Apache Tomcat 8.5.0 through 8.5.93
  • Debian Linux 10.0, 11.0, and 12.0

Discovery Timeline

  • 2023-10-10 - CVE-2023-42795 published to NVD
  • 2025-08-07 - Last updated in NVD database

Technical Details for CVE-2023-42795

Vulnerability Analysis

This vulnerability is classified under CWE-459 (Incomplete Cleanup), which occurs when a product does not properly clear previously used resources that may still contain sensitive data before they are reused. In Apache Tomcat's architecture, internal objects such as request and response buffers are recycled for performance optimization. When these objects are reused without complete cleanup, residual data from previous requests can persist and become accessible in subsequent request/response cycles.

The flaw is particularly concerning in multi-tenant environments or applications handling sensitive user data, where information boundaries between users must be strictly maintained. An error condition during the recycling process triggers the incomplete cleanup, meaning the vulnerability may manifest intermittently depending on server load and error conditions.

Root Cause

The root cause stems from improper error handling in Tomcat's internal object recycling mechanism. When recycling request/response objects for reuse, if an exception or error occurs during the cleanup phase, the process may terminate early without fully clearing all data fields. This leaves portions of the previous request/response data intact in the recycled object, which is then assigned to handle a new incoming request.

The recycling optimization is designed to reduce memory allocation overhead, but the incomplete cleanup allows data bleed-through when errors interrupt the normal cleanup sequence. Older, end-of-life versions of Tomcat may also be affected by this issue.

Attack Vector

The attack vector for CVE-2023-42795 is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by:

  1. Sending requests to a vulnerable Tomcat server that may trigger error conditions during object recycling
  2. Monitoring subsequent responses for leaked information from other users' requests
  3. Potentially harvesting session identifiers, authentication tokens, or sensitive application data that persists across request boundaries

The exploitation does not require specific privileges and can be performed remotely against any network-accessible Tomcat instance. The information disclosed could include HTTP headers, POST data, cookies, or other request/response content from previous users.

Detection Methods for CVE-2023-42795

Indicators of Compromise

  • Unexpected data appearing in HTTP responses that does not correlate with the current request
  • Log entries indicating recycling errors or exceptions in Tomcat's internal processing
  • Users reporting seeing other users' data or session information
  • Anomalous HTTP response sizes or content that suggests data concatenation from multiple requests

Detection Strategies

  • Monitor Tomcat application logs for recycling-related exceptions or warnings using the catalina.out log file
  • Implement application-level logging to track request/response content for anomalies
  • Deploy web application firewalls (WAF) with rules to detect information leakage patterns
  • Use SentinelOne Singularity Platform to monitor for unusual Tomcat process behavior and memory access patterns

Monitoring Recommendations

  • Enable verbose logging in Tomcat to capture recycling process events and potential errors
  • Implement real-time log analysis to detect patterns indicative of incomplete cleanup events
  • Monitor network traffic for responses containing mixed or unexpected data fragments
  • Configure alerting for Tomcat error rates that may indicate conditions triggering the vulnerability

How to Mitigate CVE-2023-42795

Immediate Actions Required

  • Upgrade Apache Tomcat to version 11.0.0-M12 or later for the 11.x branch
  • Upgrade Apache Tomcat to version 10.1.14 or later for the 10.1.x branch
  • Upgrade Apache Tomcat to version 9.0.81 or later for the 9.x branch
  • Upgrade Apache Tomcat to version 8.5.94 or later for the 8.5.x branch
  • Apply Debian security patches as documented in DSA-5521 and DSA-5522 for Debian-based systems

Patch Information

Apache has released security patches addressing this vulnerability across all affected version branches. The fix ensures that the object recycling process completes all necessary cleanup steps even when errors occur during the process.

For detailed patch information, refer to the Apache Mailing List Discussion. Additional security advisories are available from Debian Security Advisory DSA-5521, Debian Security Advisory DSA-5522, and NetApp Security Advisory NTAP-20231103-0007.

Workarounds

  • If immediate patching is not possible, consider implementing request isolation at the reverse proxy or load balancer level
  • Enable additional error handling and cleanup routines at the application level to minimize sensitive data in request/response objects
  • Consider deploying Tomcat instances with reduced thread pool sizes to limit the potential scope of information leakage
  • Implement session invalidation and cleanup policies to reduce sensitive data retention in recycled objects
bash
# Verify current Tomcat version
cd $CATALINA_HOME
./bin/version.sh

# Example: Upgrade Tomcat on Linux systems
# Stop Tomcat service
systemctl stop tomcat

# Backup current installation
cp -r $CATALINA_HOME $CATALINA_HOME.backup

# Download and extract patched version (example for 9.0.81)
wget https://archive.apache.org/dist/tomcat/tomcat-9/v9.0.81/bin/apache-tomcat-9.0.81.tar.gz
tar -xzf apache-tomcat-9.0.81.tar.gz

# Restart Tomcat service
systemctl start tomcat

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechApache Tomcat

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.69%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-459
  • Technical References
  • OpenWall OSS Security Update

  • Debian LTS Security Announcement

  • NetApp Security Advisory NTAP-20231103-0007

  • Debian Security Advisory DSA-5521

  • Debian Security Advisory DSA-5522
  • Vendor Resources
  • Apache Mailing List Discussion
  • Related CVEs
  • CVE-2023-28708: Apache Tomcat Info Disclosure Vulnerability

  • CVE-2024-21733: Apache Tomcat Information Disclosure Flaw

  • CVE-2023-34981: Apache Tomcat Information Disclosure Flaw

  • CVE-2021-25122: Apache Tomcat Information Disclosure Flaw
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