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-2021-29509

CVE-2021-29509: Puma HTTP Server DoS Vulnerability

CVE-2021-29509 is a denial of service flaw in Puma HTTP server that allows greedy persistent connections to starve new connections. This post covers the technical details, affected versions, impact, and mitigation.

Published: February 25, 2026

CVE-2021-29509 Overview

CVE-2021-29509 is a Denial of Service (DoS) vulnerability affecting Puma, a concurrent HTTP 1.1 server for Ruby/Rack applications. This vulnerability represents an incomplete fix for the earlier CVE-2019-16770, which addressed connection starvation attacks. The original fix only protected existing connections that had already been accepted from having their requests starved by greedy persistent-connections saturating all threads in the same process. However, the incomplete remediation left a critical gap: new connections could still be starved by greedy persistent-connections saturating all threads across all processes in the cluster.

Critical Impact

A Puma server receiving more concurrent keep-alive connections than available threads in its threadpool will only service a subset of connections, effectively denying service to legitimate clients attempting to connect.

Affected Products

  • Puma versions prior to 4.3.8
  • Puma versions 5.x prior to 5.3.1
  • Debian Linux 10.0

Discovery Timeline

  • 2021-05-11 - CVE-2021-29509 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-29509

Vulnerability Analysis

This vulnerability stems from an incomplete fix for CVE-2019-16770, which was intended to prevent connection starvation attacks. The original mitigation successfully prevented existing accepted connections from being starved by greedy persistent-connections that saturated all threads within the same process. However, the fix failed to account for a broader attack surface: new incoming connections remained vulnerable to starvation when persistent-connections saturated all threads across all processes in a clustered Puma deployment.

The vulnerability is classified under CWE-400 (Uncontrolled Resource Consumption) and CWE-667 (Improper Locking), reflecting the resource exhaustion nature of the attack and the underlying synchronization issues in connection handling.

Root Cause

The root cause lies in Puma's thread pool management and connection handling logic. When an attacker establishes multiple persistent keep-alive connections equal to or exceeding the total number of threads available in the server's threadpool, these connections consume all available worker threads. The server's queue mechanism for new connections becomes ineffective because no threads are available to service queued requests, resulting in new legitimate connection attempts being indefinitely delayed or dropped.

Attack Vector

The attack can be executed remotely over the network without requiring any authentication or user interaction. An attacker initiates multiple concurrent HTTP connections with keep-alive headers, maintaining these connections in an active state. By keeping these connections open and periodically sending minimal traffic to prevent timeout, the attacker can monopolize the server's thread resources.

The attack is particularly effective against Puma servers operating without a reverse proxy (such as nginx or Apache), as these intermediary servers typically implement their own connection limiting and request queuing mechanisms that can mitigate such attacks.

The exploitation pattern involves:

  1. Opening multiple persistent HTTP connections to the target Puma server
  2. Sending requests with Connection: keep-alive headers
  3. Maintaining connections by periodically sending minimal data
  4. Exhausting the server's threadpool capacity across all processes

Detection Methods for CVE-2021-29509

Indicators of Compromise

  • Sudden increase in active connections that remain open for extended periods
  • Thread pool exhaustion metrics showing all workers in busy state
  • Legitimate user complaints about connection timeouts or refused connections
  • Network monitoring showing multiple long-lived connections from a small number of source IPs

Detection Strategies

  • Monitor Puma server metrics for thread pool utilization approaching 100%
  • Implement connection tracking to identify sources maintaining unusually high numbers of concurrent connections
  • Set up alerting on sudden drops in successful request completion rates
  • Review server logs for patterns of connection establishment without corresponding request completion

Monitoring Recommendations

  • Deploy application performance monitoring (APM) solutions to track thread utilization and connection states
  • Configure network-level monitoring to detect anomalous connection patterns characteristic of DoS attacks
  • Establish baseline metrics for normal connection behavior and alert on significant deviations
  • Implement real-time dashboards showing active connections, thread availability, and request queue depth

How to Mitigate CVE-2021-29509

Immediate Actions Required

  • Upgrade Puma to version 4.3.8 or later for the 4.x branch
  • Upgrade Puma to version 5.3.1 or later for the 5.x branch
  • Deploy a reverse proxy (nginx or Apache) in front of Puma servers to provide connection management
  • Review and harden connection timeout configurations

Patch Information

The Puma development team has released patched versions that fully address this vulnerability. Organizations should upgrade to Puma 4.3.8 or 5.3.1 or later versions. For detailed patch information and upgrade guidance, refer to the GitHub Security Advisory. A git patch is also available for organizations using unsupported Puma versions at the Puma Patch Gist.

Workarounds

  • Set queue_requests false in Puma configuration (note: this is not recommended when running Puma without a reverse proxy as it exposes the server to slow client attacks such as slowloris)
  • Deploy nginx or Apache as a reverse proxy to handle connection management and provide rate limiting
  • Implement network-level rate limiting to restrict the number of concurrent connections from individual IP addresses
  • Consider deploying a Web Application Firewall (WAF) with DoS protection capabilities
bash
# Configuration example - Puma configuration workaround
# Add to config/puma.rb
queue_requests false

# Note: Only use this workaround if Puma is behind a reverse proxy
# such as nginx or Apache. Running Puma directly with this setting
# exposes the server to slow client attacks (e.g., slowloris).

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechPuma

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability1.36%

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

  • CWE-667
  • Technical References
  • GitHub Security Policy

  • Debian LTS Announcement

  • RubyGems Puma Information

  • Gentoo GLSA 202208-28
  • Vendor Resources
  • GitHub Gist Resource

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2022-24790: Puma HTTP Request Smuggling Vulnerability

  • CVE-2022-23634: Puma Information Disclosure Vulnerability
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