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

CVE-2021-32740: Addressable URI Template DoS Vulnerability

CVE-2021-32740 is a denial of service vulnerability in Addressable URI library caused by uncontrolled resource consumption in URI template matching. This article covers the technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2021-32740 Overview

CVE-2021-32740 is a denial of service vulnerability affecting Addressable, an alternative implementation to the URI implementation that is part of Ruby's standard library. An uncontrolled resource consumption vulnerability exists after version 2.3.0 through version 2.7.0. Within the URI template implementation in Addressable, a maliciously crafted template may result in uncontrolled resource consumption, leading to denial of service when matched against a URI.

In typical usage, templates would not normally be read from untrusted user input, but nonetheless, no previous security advisory for Addressable had cautioned against doing this. Users of the parsing capabilities in Addressable but not the URI template capabilities are unaffected.

Critical Impact

Malicious URI templates can cause catastrophic backtracking, consuming excessive CPU and memory resources, leading to application-level denial of service conditions.

Affected Products

  • Addressable versions after 2.3.0 through 2.7.0 (Ruby gem)
  • Fedora 33
  • Fedora 34

Discovery Timeline

  • 2021-07-06 - CVE-2021-32740 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-32740

Vulnerability Analysis

This vulnerability is classified as CWE-400 (Uncontrolled Resource Consumption). The flaw exists within Addressable's URI template matching functionality, where certain maliciously constructed templates can trigger catastrophic backtracking behavior during regex evaluation. This algorithmic complexity attack exploits the way the template matching engine processes complex patterns against input URIs.

When a vulnerable template is matched against a URI, the regex engine may enter an exponential time complexity state, causing the application to consume excessive CPU cycles and potentially memory. This can lead to a complete denial of service for the affected Ruby application, impacting availability for all users relying on that service.

The vulnerability is network-exploitable, requiring no privileges or user interaction to trigger. An attacker who can influence the URI templates processed by an application using Addressable can cause resource exhaustion by submitting carefully crafted malicious templates.

Root Cause

The root cause lies in the regular expression implementation within Addressable's URI template matching system. When processing certain template patterns, the regex engine exhibits catastrophic backtracking behavior—a known algorithmic complexity issue where the regex evaluator explores an exponential number of possible matches before determining a result.

This occurs because the template parsing logic did not include safeguards against pathological input patterns that could trigger worst-case regex performance. The template syntax allows for complex expressions that, when combined with specific URI inputs, cause the matching algorithm to recurse excessively.

Attack Vector

The attack can be executed remotely over the network. An attacker needs to supply a maliciously crafted URI template to an application that uses Addressable's template matching functionality. The attack requires no authentication and no user interaction.

The vulnerability manifests in the Template object's matching operations. When an application creates a Template object from untrusted input and attempts to match it against a URI, the malicious template triggers excessive resource consumption. For detailed technical information about the vulnerability mechanism, see the GitHub Security Advisory.

Detection Methods for CVE-2021-32740

Indicators of Compromise

  • Abnormally high CPU utilization in Ruby processes running Addressable-dependent applications
  • Application threads or workers becoming unresponsive during URI template operations
  • Memory consumption spikes correlated with URI template matching requests
  • Request timeouts or slow responses from services that process URI templates

Detection Strategies

  • Monitor Ruby application logs for unusually long processing times in URI template operations
  • Implement request timeout monitoring to detect hanging template matching operations
  • Profile CPU usage patterns to identify regex-related resource exhaustion
  • Audit application code for Template object creation from user-controlled input

Monitoring Recommendations

  • Set up alerts for CPU utilization thresholds on servers running affected Ruby applications
  • Implement request-level timeout monitoring for endpoints that process URI templates
  • Monitor application response times and establish baselines for normal operation
  • Track memory consumption patterns in Ruby worker processes

How to Mitigate CVE-2021-32740

Immediate Actions Required

  • Upgrade Addressable gem to version 2.8.0 or later immediately
  • Audit application code to identify all locations where Template objects are created
  • Implement input validation for any user-controlled data used in URI templates
  • Consider adding request timeouts to protect against resource exhaustion

Patch Information

The vulnerability is patched in Addressable version 2.8.0. The fix addresses the catastrophic backtracking issue in the URI template implementation. The patch is available via the GitHub commit.

To upgrade, update your Gemfile:

ruby
gem 'addressable', '>= 2.8.0'

Then run bundle update addressable to apply the update.

Fedora users should apply the relevant security updates as announced in the Fedora Package Announcements.

Workarounds

  • Only create Template objects from trusted sources that have been validated not to produce catastrophic backtracking
  • Implement strict input validation to reject complex or suspicious template patterns before processing
  • Add timeout wrappers around URI template matching operations to limit execution time
  • If possible, avoid using URI template matching with any user-controlled input
bash
# Check current Addressable version in your project
bundle show addressable

# Update to patched version
bundle update addressable

# Verify the update was applied
bundle show addressable
# Should show >= 2.8.0

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechAddressable

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.89%

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

  • Fedora Package Announcement

  • Fedora Package Announcement
  • Vendor Resources
  • GitHub Commit Update
  • Related CVEs
  • CVE-2026-35611: Addressable URI Template 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