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-2020-13935

CVE-2020-13935: Apache Tomcat WebSocket DoS Vulnerability

CVE-2020-13935 is a denial of service flaw in Apache Tomcat's WebSocket frame validation that triggers an infinite loop. This article covers the technical details, affected versions, and mitigation strategies.

Published: March 11, 2026

CVE-2020-13935 Overview

CVE-2020-13935 is a Denial of Service vulnerability affecting Apache Tomcat's WebSocket implementation. The payload length in WebSocket frames is not correctly validated, allowing attackers to send specially crafted requests with invalid payload lengths that trigger an infinite loop in the server. Multiple requests exploiting this vulnerability can lead to complete service unavailability.

This vulnerability impacts a wide range of Apache Tomcat versions across multiple major release branches, including versions 10.0.0-M1 through 10.0.0-M6, 9.0.0.M1 through 9.0.36, 8.5.0 through 8.5.56, and 7.0.27 through 7.0.104. The extensive version coverage and network-accessible attack vector make this a significant concern for organizations running WebSocket-enabled Tomcat deployments.

Critical Impact

Unauthenticated remote attackers can cause complete denial of service by sending malformed WebSocket frames, triggering infinite loops that exhaust server resources.

Affected Products

  • Apache Tomcat 10.0.0-M1 to 10.0.0-M6
  • Apache Tomcat 9.0.0.M1 to 9.0.36
  • Apache Tomcat 8.5.0 to 8.5.56
  • Apache Tomcat 7.0.27 to 7.0.104
  • Debian Linux 9.0 and 10.0
  • Canonical Ubuntu Linux 16.04 ESM and 20.04 LTS
  • openSUSE Leap 15.1 and 15.2
  • McAfee ePolicy Orchestrator 5.9.x and 5.10.x
  • Oracle MySQL Enterprise Monitor, Blockchain Platform, and various Oracle products

Discovery Timeline

  • July 14, 2020 - CVE-2020-13935 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2020-13935

Vulnerability Analysis

This vulnerability stems from improper validation of WebSocket frame payload lengths within Apache Tomcat's WebSocket implementation (CWE-835: Loop with Unreachable Exit Condition). When processing incoming WebSocket frames, the server fails to adequately validate the payload length field before entering processing loops. An attacker can exploit this by sending WebSocket frames containing malformed or invalid payload length values that cause the server to enter an infinite loop condition.

The WebSocket protocol (RFC 6455) specifies that frames include a payload length field that indicates the size of the data following the header. Tomcat's implementation did not properly validate these length values against expected boundaries, allowing attackers to craft frames that bypass normal termination conditions in the frame processing logic.

Root Cause

The root cause is insufficient input validation in the WebSocket frame parsing code. When Tomcat receives a WebSocket frame, it reads the payload length field but does not properly validate it before proceeding with frame processing. Invalid payload length values can cause loop control logic to fail, resulting in the server entering an infinite loop while attempting to process the malformed frame. This represents a classic input validation vulnerability where external untrusted data is used to control program flow without proper sanitization.

Attack Vector

The attack is executed remotely over the network without requiring authentication. An attacker establishes a WebSocket connection to a vulnerable Tomcat server and then sends specially crafted WebSocket frames with invalid payload length values. The vulnerability can be exploited as follows:

  1. The attacker initiates a WebSocket handshake with the target Tomcat server
  2. Once the connection is established, the attacker sends malformed WebSocket frames with manipulated payload length fields
  3. The server attempts to process these frames and enters an infinite loop due to the invalid length values
  4. Multiple such requests can exhaust server threads and resources, leading to complete denial of service

The attack does not require any user interaction or privileged access, making it highly exploitable in exposed environments.

Detection Methods for CVE-2020-13935

Indicators of Compromise

  • Unexpected CPU spikes on Tomcat server processes without corresponding legitimate traffic
  • Tomcat worker threads becoming unresponsive or stuck in processing states
  • WebSocket connection logs showing unusual connection patterns or malformed requests
  • Server health checks failing while the Tomcat process continues running

Detection Strategies

  • Monitor Tomcat thread pool utilization for abnormal exhaustion patterns
  • Implement application-level logging for WebSocket frame processing errors and exceptions
  • Deploy network intrusion detection rules to identify malformed WebSocket frame patterns
  • Configure SentinelOne agents to monitor for process anomalies indicative of infinite loop conditions

Monitoring Recommendations

  • Enable detailed WebSocket debug logging in Tomcat to capture frame processing anomalies
  • Set up alerts for Tomcat thread pool exhaustion (connector thread count reaching maximum)
  • Monitor server resource utilization trends to establish baselines and detect DoS conditions
  • Implement health check endpoints that test WebSocket functionality specifically

How to Mitigate CVE-2020-13935

Immediate Actions Required

  • Upgrade Apache Tomcat to patched versions: 10.0.0-M7+, 9.0.37+, 8.5.57+, or 7.0.105+
  • Review all applications and products that embed Apache Tomcat for vulnerable versions
  • Implement rate limiting on WebSocket connections at the network or load balancer level
  • Consider temporarily disabling WebSocket functionality if not required for business operations

Patch Information

Apache has released patched versions addressing this vulnerability. Organizations should upgrade to the following minimum versions:

  • Apache Tomcat 10.x: Upgrade to 10.0.0-M7 or later
  • Apache Tomcat 9.x: Upgrade to 9.0.37 or later
  • Apache Tomcat 8.5.x: Upgrade to 8.5.57 or later
  • Apache Tomcat 7.x: Upgrade to 7.0.105 or later

For downstream products embedding Tomcat, consult vendor advisories including the Oracle Critical Patch Updates, McAfee Security Bulletin SB10332, Debian Security Advisory DSA-4727, and Ubuntu Security Notices.

Workarounds

  • Deploy a Web Application Firewall (WAF) with rules to inspect and validate WebSocket frame structures
  • Implement connection rate limiting at the load balancer to restrict WebSocket connection frequency
  • Configure network segmentation to limit exposure of Tomcat WebSocket endpoints
  • Disable the WebSocket protocol in Tomcat if WebSocket functionality is not required by your applications
bash
# Example: Disable WebSocket support in Tomcat by removing the WebSocket JARs
# Navigate to Tomcat lib directory and remove WebSocket implementation
cd $CATALINA_HOME/lib
mv websocket-api.jar websocket-api.jar.disabled
mv tomcat-websocket.jar tomcat-websocket.jar.disabled

# Restart Tomcat to apply changes
$CATALINA_HOME/bin/shutdown.sh
$CATALINA_HOME/bin/startup.sh

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

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability92.16%

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

  • openSUSE Security Announcement

  • McAfee Security Bulletin

  • Apache Tomcat User Thread

  • Debian LTS Security Announcement

  • NetApp Security Advisory

  • Ubuntu Security Notice

  • Ubuntu Security Notice

  • Debian Security Update

  • Oracle Critical Patch Update
  • Vendor Resources
  • Apache Tomcat Announce Thread

  • Oracle Critical Patch Update

  • Oracle Critical Patch Update

  • Oracle Critical Patch Update

  • Oracle Critical Patch Update

  • Oracle Critical Patch Update

  • Oracle Critical Patch Update
  • Related CVEs
  • CVE-2025-61795: Apache Tomcat DoS Vulnerability

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