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

CVE-2021-27293: RestSharp ReDoS Denial of Service Vulnerability

CVE-2021-27293 is a Regular Expression Denial of Service (ReDoS) vulnerability in RestSharp that allows malicious servers to cause clients to hang indefinitely. This article covers technical details, affected versions, and mitigations.

Published: February 25, 2026

CVE-2021-27293 Overview

CVE-2021-27293 is a Regular Expression Denial of Service (ReDoS) vulnerability affecting RestSharp, a popular .NET HTTP client library. The vulnerability exists in versions prior to 106.11.8-alpha.0.13 where a poorly constructed regular expression is used when converting strings into DateTimes. When a malicious server responds with a specially crafted string, the RestSharp client becomes stuck processing the input for an extended period, effectively causing a Denial of Service condition.

Critical Impact

Remote attackers can exploit this vulnerability to cause client-side Denial of Service by sending malicious responses that trigger catastrophic backtracking in the regex engine, rendering applications unresponsive.

Affected Products

  • RestSharp versions prior to 106.11.8-alpha.0.13
  • RestSharp 106.11.8-alpha0.2 through 106.11.8-alpha0.12
  • All RestSharp installations using vulnerable DateTime parsing functionality

Discovery Timeline

  • 2021-07-12 - CVE-2021-27293 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-27293

Vulnerability Analysis

This vulnerability is classified under CWE-697 (Incorrect Comparison), which in this context manifests as an algorithmic complexity attack through Regular Expression Denial of Service. The flaw resides in the DateTime string parsing functionality of RestSharp, where a vulnerable regular expression pattern exhibits catastrophic backtracking behavior when processing maliciously crafted input strings.

ReDoS vulnerabilities occur when regular expressions with specific patterns (often involving nested quantifiers or overlapping alternatives) are fed input that causes the regex engine to explore an exponentially growing number of possible matches. This transforms what should be a simple string parsing operation into a computationally expensive process that can consume CPU resources for extended periods.

The attack is particularly concerning because it is remotely triggerable - a malicious server can craft responses that exploit this vulnerability, causing any client application using the affected RestSharp versions to hang or become unresponsive.

Root Cause

The root cause lies in the implementation of the regular expression used for DateTime string conversion within RestSharp. The regex pattern contains constructs that lead to exponential time complexity when processing certain input patterns. When the regex engine encounters a string that partially matches multiple potential paths, it must backtrack and try alternative matches, leading to what is known as "catastrophic backtracking."

This architectural flaw in the regex pattern design allows external input to directly influence application responsiveness, violating the principle of bounded resource consumption.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker controlling a server that a RestSharp client connects to can craft malicious HTTP responses containing strings designed to trigger the ReDoS condition. When the RestSharp library attempts to parse these responses and convert date strings, the vulnerable regex causes the application to hang.

The attack scenario involves:

  1. A target application using a vulnerable version of RestSharp makes HTTP requests to an attacker-controlled or compromised server
  2. The malicious server responds with carefully crafted strings in fields that RestSharp attempts to parse as DateTime values
  3. The vulnerable regex processes the malicious input, triggering catastrophic backtracking
  4. The client application becomes unresponsive until the regex engine eventually completes or times out

This vulnerability demonstrates the risks of using unbounded regex patterns when processing untrusted external data. Technical details and the original vulnerability report can be found in the GitHub Issue #1556.

Detection Methods for CVE-2021-27293

Indicators of Compromise

  • Unusually high CPU utilization in processes using RestSharp library
  • Application threads stuck in regex processing operations
  • Timeouts or hangs when processing HTTP responses from external servers
  • Memory profile showing extended regex backtracking operations

Detection Strategies

  • Implement dependency scanning to identify RestSharp versions below 106.11.8-alpha.0.13
  • Monitor application performance metrics for anomalous CPU spikes during HTTP response processing
  • Utilize Software Composition Analysis (SCA) tools to track vulnerable library versions
  • Review application logs for timeout exceptions related to DateTime parsing

Monitoring Recommendations

  • Enable detailed logging for RestSharp HTTP operations to identify slow response processing
  • Set up alerting for process CPU utilization thresholds that may indicate ReDoS exploitation
  • Monitor response times for API calls made using RestSharp clients
  • Implement application performance monitoring (APM) to detect regex-related performance degradation

How to Mitigate CVE-2021-27293

Immediate Actions Required

  • Upgrade RestSharp to version 106.11.8-alpha.0.13 or later immediately
  • Audit all applications and services that depend on RestSharp for vulnerable versions
  • Implement request timeouts in applications to limit the impact of potential ReDoS attacks
  • Review and update dependency management policies to prevent deployment of vulnerable versions

Patch Information

The vulnerability has been addressed in RestSharp version 106.11.8-alpha.0.13 and later releases. The fix involves replacing the vulnerable regex pattern with a safer implementation that does not exhibit catastrophic backtracking behavior. Organizations should update to the latest stable release of RestSharp to ensure they receive this fix along with any subsequent security improvements.

For detailed patch information and release notes, refer to the RestSharp Official Website and the GitHub Issue #1556 which tracks this vulnerability.

Workarounds

  • Implement connection timeouts at the HTTP client level to limit execution time for any single request
  • Add application-level timeout wrappers around RestSharp API calls to prevent indefinite hangs
  • Consider input validation or sanitization for responses from untrusted external servers
  • Deploy network-level protections to limit exposure to potentially malicious external endpoints
bash
# Example: Update RestSharp via NuGet Package Manager
dotnet add package RestSharp --version 110.0.0
# Or update via Package Manager Console
Install-Package RestSharp -Version 110.0.0

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechRestsharp

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.44%

  • 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-697
  • Technical References
  • RestSharp Official Website
  • Vendor Resources
  • GitHub Issue #1556
  • Latest CVEs
  • CVE-2025-11419: Keycloak TLS DoS Vulnerability

  • CVE-2025-13947: WebKitGTK Information Disclosure Flaw

  • CVE-2026-40322: SiYuan Knowledge Management RCE Vulnerability

  • CVE-2026-40318: SiYuan Path Traversal 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