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-2025-61795

CVE-2025-61795: Apache Tomcat DoS Vulnerability

CVE-2025-61795 is a denial of service vulnerability in Apache Tomcat caused by improper cleanup of multipart upload temporary files. This article covers the technical details, affected versions, and mitigation strategies.

Published: April 15, 2026

CVE-2025-61795 Overview

An Improper Resource Shutdown or Release vulnerability has been identified in Apache Tomcat that can lead to a Denial of Service (DoS) condition. When errors occur during multipart upload processing—including scenarios where upload limits are exceeded—temporary copies of uploaded file parts written to disk are not cleaned up immediately. Instead, these temporary files are left for the Java garbage collection (GC) process to delete.

Depending on JVM configuration, application memory usage, and server load, the disk space allocated for temporary file storage can be exhausted faster than the garbage collector can clear it. This resource exhaustion condition enables attackers to trigger a DoS against affected Apache Tomcat servers.

Critical Impact

Attackers can exhaust server disk space through crafted multipart uploads, causing service unavailability and potentially affecting all applications hosted on the Tomcat instance.

Affected Products

  • Apache Tomcat 11.0.0-M1 through 11.0.11
  • Apache Tomcat 10.1.0-M1 through 10.1.46
  • Apache Tomcat 9.0.0.M1 through 9.0.109
  • Apache Tomcat 8.5.0 through 8.5.100 (End of Life)

Discovery Timeline

  • 2025-10-27 - CVE-2025-61795 published to NVD
  • 2025-11-14 - Last updated in NVD database

Technical Details for CVE-2025-61795

Vulnerability Analysis

This vulnerability is classified as CWE-404 (Improper Resource Shutdown or Release). The flaw exists in how Apache Tomcat handles temporary file cleanup during multipart upload processing. Under normal operations, when a multipart upload request is processed, Tomcat writes temporary copies of the uploaded file parts to disk. If an error occurs during this process—such as exceeding configured size limits or encountering I/O errors—the temporary files should be immediately deleted to free disk space.

However, due to improper resource management, these temporary files are not cleaned up synchronously when errors occur. Instead, the cleanup is deferred to the JVM's garbage collection cycle. This design flaw creates a race condition between file creation and cleanup, where an attacker can generate temporary files faster than they are removed.

Root Cause

The root cause lies in the improper handling of temporary file resources within Tomcat's multipart upload processing code. When the upload encounters an error condition, the associated temporary DiskFileItem objects are not explicitly deleted. The cleanup relies on Java's finalization mechanism and garbage collection, which is non-deterministic and may not execute in a timely manner—especially under high load conditions or with specific JVM heap configurations.

This behavior violates secure resource management principles, as temporary resources acquired during error paths should be released immediately rather than relying on eventual garbage collection.

Attack Vector

The attack vector is network-based and requires low privileges to execute. An attacker can exploit this vulnerability by sending a series of multipart HTTP POST requests to any endpoint on the Tomcat server that accepts file uploads. The attack methodology involves:

  1. Crafting multipart upload requests that trigger error conditions (e.g., exceeding maxFileSize or maxRequestSize limits)
  2. Sending these requests repeatedly at high volume to generate many temporary files
  3. Continuing the attack until the temporary directory's disk partition is exhausted
  4. The DoS condition prevents legitimate users from uploading files and may cause application failures if the same partition is used for other operations

The attack requires network access to the target Tomcat server but does not require authentication to endpoints that accept file uploads. The complexity is high due to the dependency on JVM settings and server load conditions for successful exploitation.

Detection Methods for CVE-2025-61795

Indicators of Compromise

  • Unusual disk space consumption in the Tomcat temporary directory ($CATALINA_BASE/temp or system temp directory)
  • Rapid accumulation of temporary files with patterns like upload_*.tmp or multipart file naming conventions
  • High volume of multipart POST requests from single or distributed sources resulting in HTTP 400/413 error responses
  • Application errors or failures due to disk space exhaustion

Detection Strategies

  • Monitor the Tomcat temporary directory for abnormal file accumulation and disk usage growth rates
  • Implement rate limiting on endpoints that accept multipart uploads to prevent request flooding
  • Configure web application firewall (WAF) rules to detect and block repetitive failed upload attempts from the same source
  • Review Tomcat access logs for patterns of repeated multipart upload requests with error responses

Monitoring Recommendations

  • Set up disk space monitoring alerts for partitions containing Tomcat temporary files with thresholds below 80% utilization
  • Enable JMX monitoring for Tomcat to track request processing metrics and error rates
  • Implement log aggregation to correlate high volumes of upload error responses with disk usage anomalies
  • Deploy SentinelOne agents to detect resource exhaustion attacks and anomalous file system activity

How to Mitigate CVE-2025-61795

Immediate Actions Required

  • Upgrade Apache Tomcat to version 11.0.12 or later, 10.1.47 or later, or 9.0.110 or later immediately
  • If running Apache Tomcat 8.5.x, migrate to a supported version as 8.5 is End of Life
  • Review and reduce multipart upload size limits (maxFileSize, maxRequestSize) to minimize temporary file size
  • Ensure the temporary directory is on a partition with adequate space and separate from critical system partitions

Patch Information

Apache has released patched versions that properly clean up temporary files when errors occur during multipart upload processing:

BranchFixed VersionDownload
11.x11.0.12+Apache Tomcat Downloads
10.1.x10.1.47+Apache Tomcat Downloads
9.0.x9.0.110+Apache Tomcat Downloads

For additional details, refer to the Apache Mailing List Discussion and the OpenWall OSS Security Update.

Workarounds

  • Configure a dedicated partition for the Tomcat temporary directory to prevent disk exhaustion from affecting other services
  • Implement an automated cleanup script that runs periodically to remove stale temporary files from the upload directory
  • Deploy rate limiting at the load balancer or reverse proxy level to restrict multipart upload requests per client
  • Consider disabling multipart upload functionality on endpoints where it is not required
bash
# Configuration example: Set up a dedicated tmpdir for Tomcat with automated cleanup
# Add to setenv.sh or catalina.sh
CATALINA_TMPDIR=/var/tomcat/temp
export CATALINA_TMPDIR

# Create cleanup cron job (run every 15 minutes)
# Add to crontab: */15 * * * * find /var/tomcat/temp -type f -mmin +30 -delete

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechApache Tomcat

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.13%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-404
  • Technical References
  • OpenWall OSS Security Update
  • Vendor Resources
  • Apache Mailing List Discussion
  • Related CVEs
  • CVE-2025-53506: Apache Tomcat HTTP/2 DoS Vulnerability

  • CVE-2025-52520: Apache Tomcat Integer Overflow DoS Flaw

  • CVE-2025-48989: Apache Tomcat DOS Vulnerability

  • CVE-2024-38286: Apache Tomcat DOS 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