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

CVE-2025-49007: Rack Ruby Web Server DoS Vulnerability

CVE-2025-49007 is a denial of service flaw in Rack's Content-Disposition parsing component affecting versions 3.1.0 to 3.1.15. This guide covers the technical details, affected versions, impact, and mitigation.

Updated: January 22, 2026

CVE-2025-49007 Overview

CVE-2025-49007 is a denial of service vulnerability in the Content-Disposition parsing component of Rack, a modular Ruby web server interface. This vulnerability affects Rack versions starting from 3.1.0 and prior to 3.1.16. The flaw is similar to a previous security issue tracked as CVE-2022-44571, where carefully crafted input can cause Content-Disposition header parsing to take an unexpected amount of time, potentially resulting in a denial of service attack.

The Content-Disposition header is typically used in multipart parsing operations. Since virtually all Rails applications parse multipart posts using Rack, this vulnerability has a broad impact across the Ruby web application ecosystem.

Critical Impact

Attackers can exploit this ReDoS (Regular Expression Denial of Service) vulnerability to cause application unavailability by sending specially crafted multipart requests that trigger exponential regex backtracking in Content-Disposition header parsing.

Affected Products

  • Rack versions 3.1.0 through 3.1.15
  • Ruby on Rails applications using vulnerable Rack versions
  • Any Ruby web application utilizing Rack's multipart parsing functionality

Discovery Timeline

  • 2025-06-04 - CVE-2025-49007 published to NVD
  • 2025-10-10 - Last updated in NVD database

Technical Details for CVE-2025-49007

Vulnerability Analysis

This vulnerability is classified under CWE-770 (Allocation of Resources Without Limits or Throttling) and CWE-1333 (Inefficient Regular Expression Complexity). The root cause lies in the regular expression patterns used for parsing Content-Disposition headers in Rack's multipart parser component.

The vulnerability can be exploited over the network without requiring authentication or user interaction. When exploited successfully, an attacker can cause high availability impact to the target application, effectively rendering it unresponsive to legitimate requests.

Root Cause

The vulnerable code resides in lib/rack/multipart/parser.rb. The original implementation used a regular expression pattern for MULTIPART_CONTENT_DISPOSITION that was susceptible to catastrophic backtracking when processing maliciously crafted input. The pattern /Content-Disposition:(.*)(?=#{EOL}(\S|\z))/ni allowed for excessive backtracking due to the greedy (.*) quantifier combined with the lookahead assertion.

Attack Vector

An attacker can exploit this vulnerability by sending HTTP multipart requests containing specially crafted Content-Disposition headers. The malicious headers are designed to trigger exponential backtracking in the vulnerable regular expression, causing the server to consume excessive CPU resources while processing the request. This effectively blocks the application from handling legitimate traffic.

ruby
# Vulnerable regex patterns (before patch)
MULTIPART_CONTENT_TYPE = /Content-Type:[ \t]*(.*)#{EOL}/ni
MULTIPART_CONTENT_DISPOSITION = /Content-Disposition:(.*)(?=#{EOL}(\S|\z))/ni
MULTIPART_CONTENT_ID = /Content-ID:[ \t]*([^\#{EOL}]*)/ni

# Fixed regex patterns (after patch)
FWS = /[ \t]+(?:\r\n[ \t]+)?/ # whitespace with optional folding
HEADER_VALUE = "(?:[^\r\n]|\r\n[ \t])*" # anything but a non-folding CRLF
MULTIPART_CONTENT_TYPE = /^Content-Type:#{FWS}?(#{HEADER_VALUE})/ni
MULTIPART_CONTENT_DISPOSITION = /^Content-Disposition:#{FWS}?(#{HEADER_VALUE})/ni
MULTIPART_CONTENT_ID = /^Content-ID:#{FWS}?(#{HEADER_VALUE})/ni

Source: GitHub Security Patch

Detection Methods for CVE-2025-49007

Indicators of Compromise

  • Unusual CPU spikes on web application servers when processing multipart requests
  • Increased request processing times for endpoints accepting file uploads
  • Application timeouts or unresponsiveness during multipart form submissions
  • Log entries showing abnormally long request durations for multipart/form-data requests

Detection Strategies

  • Monitor application performance metrics for sudden increases in CPU utilization during HTTP request processing
  • Implement request timeout monitoring to detect requests taking abnormally long to complete
  • Analyze web server logs for patterns of repeated multipart requests targeting the same endpoints
  • Deploy application performance monitoring (APM) to track regex execution times in Ruby applications

Monitoring Recommendations

  • Configure alerting for sustained high CPU usage on application servers running Rack-based applications
  • Implement request duration thresholds and alert when multipart parsing exceeds expected timeframes
  • Monitor for repeated requests from single IP addresses targeting file upload endpoints
  • Review Rack and Rails application logs for parsing errors or timeout exceptions

How to Mitigate CVE-2025-49007

Immediate Actions Required

  • Upgrade Rack to version 3.1.16 or later immediately
  • Review all Ruby on Rails applications in your environment for vulnerable Rack versions
  • Implement request timeout limits at the web server or load balancer level as a temporary measure
  • Consider rate limiting multipart form submissions until patches can be applied

Patch Information

The vulnerability has been fixed in Rack version 3.1.16. The patch rewrites the vulnerable regular expressions to use more efficient patterns that prevent catastrophic backtracking. The fix introduces proper header value matching with the HEADER_VALUE pattern and optional folding whitespace handling via the FWS pattern.

For detailed patch information, refer to:

  • GitHub Security Advisory GHSA-47m2-26rw-j2jw
  • Primary Patch Commit
  • Secondary Patch Commit

Workarounds

  • Configure web server timeouts to limit maximum request processing time
  • Implement request body size limits to reduce the attack surface for malicious multipart payloads
  • Deploy a Web Application Firewall (WAF) with rules to detect and block abnormally large or malformed Content-Disposition headers
  • Consider using a reverse proxy to terminate and validate multipart requests before they reach the application
bash
# Example: Update Rack gem to patched version
bundle update rack --conservative

# Verify installed version
bundle show rack
# Expected output: rack-3.1.16 or higher

# Alternative: Pin to patched version in Gemfile
echo 'gem "rack", ">= 3.1.16"' >> Gemfile
bundle install

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechRack

  • SeverityMEDIUM

  • CVSS Score6.6

  • EPSS Probability0.16%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-770

  • CWE-1333
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Security Advisory
  • 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 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