A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2024-25126

CVE-2024-25126: Rack Ruby Web Server DoS Vulnerability

CVE-2024-25126 is a denial of service flaw in Rack's media type parser caused by crafted content type headers. Attackers can exploit this ReDos vulnerability to degrade performance. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: June 2, 2026

CVE-2024-25126 Overview

CVE-2024-25126 is a denial of service vulnerability in Rack, the modular Ruby web server interface used by Rails and other Ruby web frameworks. The flaw resides in Rack's media type parser, which processes the Content-Type HTTP header. Carefully crafted header values trigger a second-degree polynomial regular expression denial of service (ReDoS), forcing the parser to consume significantly more CPU time than expected. Remote attackers can submit specially formed requests to exhaust server resources without authentication. The vulnerability is patched in Rack 3.0.9.1 and 2.2.8.1, and tracked under [CWE-1333] (Inefficient Regular Expression Complexity).

Critical Impact

Unauthenticated remote attackers can degrade or halt Rack-based Ruby web applications by sending malformed Content-Type headers that trigger excessive CPU consumption.

Affected Products

  • Rack versions prior to 2.2.8.1 (2.x branch)
  • Rack versions prior to 3.0.9.1 (3.x branch)
  • Debian Linux 10 (with vulnerable Rack packages)

Discovery Timeline

  • 2024-02-29 - CVE-2024-25126 published to NVD
  • 2025-02-14 - Last updated in NVD database

Technical Details for CVE-2024-25126

Vulnerability Analysis

The vulnerability stems from Rack's MediaType parsing logic, which uses a regular expression to split and normalize the Content-Type HTTP header. The regex exhibits second-degree polynomial complexity when processing pathological input. As input length grows, parsing time grows quadratically, allowing modest payload sizes to consume disproportionate CPU resources. Because Rack sits beneath frameworks such as Ruby on Rails, the parser is reached on virtually every inbound HTTP request that includes a Content-Type header. No authentication is required to trigger the condition, and the network attack vector means any internet-facing Rack application is reachable.

Root Cause

The root cause is an inefficient regular expression used to parse media type parameters in the Content-Type header. The pattern backtracks excessively on crafted inputs containing repeated structural characters. This pattern of inefficient regex design is classified under [CWE-1333]. The upstream fix, applied in commits 6efb2ce and d9c163a, rewrites the parsing logic to eliminate the quadratic behavior.

Attack Vector

An attacker sends HTTP requests containing a specially crafted Content-Type header to any endpoint served by a vulnerable Rack version. Each request causes the Rack media type parser to spend extended CPU time before request handling completes. Repeated requests, or a sustained stream from multiple sources, exhaust worker processes and threads. The result is service degradation or full denial of service for legitimate users. See the GitHub Security Advisory GHSA-22f2-v57c-j9cx for additional technical context.

No verified public proof-of-concept code is available. The vulnerability manifests when malformed media type strings are passed to Rack's header parser; refer to the RubySec advisory entry for the canonical technical description.

Detection Methods for CVE-2024-25126

Indicators of Compromise

  • HTTP requests containing unusually long or structurally repetitive Content-Type header values (for example, repeated delimiter characters such as ; or ,).
  • Sudden, sustained CPU saturation in Ruby application worker processes (puma, unicorn, passenger) without a corresponding rise in request throughput.
  • Increased request latency and HTTP 502 or 504 responses from upstream load balancers fronting Rack applications.

Detection Strategies

  • Inventory deployed Ruby applications and identify Rack gem versions using bundle list rack or gem list rack to flag versions older than 2.2.8.1 or 3.0.9.1.
  • Enable web application firewall (WAF) inspection of the Content-Type header and alert on values exceeding a reasonable length threshold (for example, 256 bytes) or containing repeated separator characters.
  • Correlate spikes in Ruby process CPU utilization with inbound request patterns in application logs to surface ReDoS-style abuse.

Monitoring Recommendations

  • Monitor per-request processing time and flag long-tail outliers on endpoints that accept arbitrary Content-Type values.
  • Track Rack and gem dependency versions through software composition analysis (SCA) to detect regressions to vulnerable releases.
  • Alert on repeated requests from the same source that produce abnormal CPU cost per request.

How to Mitigate CVE-2024-25126

Immediate Actions Required

  • Upgrade Rack to 2.2.8.1 for 2.x deployments or 3.0.9.1 for 3.x deployments, then redeploy affected applications.
  • Apply distribution updates for Debian as described in the Debian LTS Announcement.
  • Review NetApp environments using the NetApp Security Advisory ntap-20240510-0005 for product-specific guidance.

Patch Information

The Rack maintainers patched the vulnerability in releases 2.2.8.1 and 3.0.9.1. The fixes are implemented in commits 6efb2ceea003c4b195815a614e00438cbd543462 and d9c163a443b8cadf4711d84bd2c58cb9ef89cf49. Refer to the Ruby on Rails discussion thread for downstream guidance.

Workarounds

  • Deploy a WAF or reverse proxy rule that rejects requests with Content-Type headers exceeding a strict length limit before they reach the Rack application.
  • Enforce per-request timeouts in the application server (for example, worker_timeout in Puma) to bound CPU time spent on any single request.
  • Apply rate limiting at the edge to constrain the request volume an individual client can submit while patching is in progress.
bash
# Upgrade Rack to a patched version
bundle update rack --conservative

# Verify the installed version is 2.2.8.1 or 3.0.9.1 (or later)
bundle list rack

# For Debian-based systems, apply package updates
sudo apt-get update && sudo apt-get install --only-upgrade ruby-rack

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechRack

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.45%

  • 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-1333
  • Technical References
  • RubySec Rack CVE-2024-25126

  • Debian LTS Announcement

  • NetApp Security Advisory ntap-20240510-0005
  • Vendor Resources
  • Ruby on Rails Discussion

  • Rack Commit Update

  • Rack Commit Update

  • GitHub Security Advisory GHSA-22f2-v57c-j9cx
  • Related CVEs
  • CVE-2026-34827: Rack Multipart Parser DoS Vulnerability

  • CVE-2026-34829: Rack Multipart Parser DoS Vulnerability

  • CVE-2026-34826: Rack Web Server Interface DoS Vulnerability

  • CVE-2026-34230: Rack Web Server Interface DoS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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