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-2022-3517

CVE-2022-3517: Minimatch ReDoS Denial of Service Flaw

CVE-2022-3517 is a Regular Expression Denial of Service (ReDoS) vulnerability in Minimatch that triggers when braceExpand function processes malicious input. This article covers technical details, affected versions, and mitigation.

Published: February 17, 2026

CVE-2022-3517 Overview

A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the minimatch package, a popular glob matching library for Node.js. This flaw allows attackers to trigger excessive CPU consumption when the braceExpand function is called with specially crafted input arguments, resulting in a Denial of Service condition. The minimatch package is widely used as a dependency in numerous Node.js projects, making this vulnerability particularly impactful across the JavaScript ecosystem.

Critical Impact

Attackers can exploit this vulnerability remotely without authentication to cause service disruption through CPU exhaustion, affecting any application using vulnerable versions of minimatch for glob pattern matching.

Affected Products

  • minimatch_project minimatch (Node.js)
  • Debian Linux 10.0
  • Fedora 36 and 37

Discovery Timeline

  • 2022-10-17 - CVE-2022-3517 published to NVD
  • 2025-05-13 - Last updated in NVD database

Technical Details for CVE-2022-3517

Vulnerability Analysis

This vulnerability is a Regular Expression Denial of Service (ReDoS) attack affecting the minimatch package's braceExpand function. ReDoS vulnerabilities occur when a regular expression implementation exhibits exponential time complexity for certain input patterns. In this case, the braceExpand function, which handles brace expansion in glob patterns, contains a regex pattern that can be exploited by providing maliciously crafted input strings.

When a vulnerable regex encounters an adversarial input, the regex engine's backtracking mechanism causes the evaluation time to grow exponentially with input length. This allows a remote attacker to submit specially crafted glob patterns that force the application to consume excessive CPU resources, effectively blocking legitimate requests and causing service unavailability.

The vulnerability is classified under CWE-400 (Uncontrolled Resource Consumption) and CWE-1333 (Inefficient Regular Expression Complexity), both of which highlight the fundamental issue of algorithmic complexity attacks against regex-based input processing.

Root Cause

The root cause of this vulnerability lies in the inefficient regular expression pattern used within the braceExpand function. The regex contains nested quantifiers or overlapping patterns that trigger catastrophic backtracking when processing certain input strings. This is a common anti-pattern in regex design where the regex engine must explore an exponentially growing number of possible matches before determining that a string does not match.

The fix committed to the minimatch repository addresses this by refactoring the vulnerable regex pattern to avoid backtracking-prone constructs, ensuring linear or polynomial time complexity regardless of input characteristics.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by sending malicious glob pattern strings to any application that uses the minimatch library for pattern matching operations.

The attack can be performed by constructing input strings that maximize the regex backtracking time. Typically, these strings contain repeated characters or patterns that cause the regex engine to explore numerous matching possibilities. Applications that accept user-supplied glob patterns for file matching, filtering, or routing are particularly vulnerable.

Since no verified code examples are available for this vulnerability, readers are encouraged to review the GitHub Commit A8763F5 for technical implementation details of the fix, and the Grafana Image Renderer Issue #329 for a real-world example of how this vulnerability manifested in production software.

Detection Methods for CVE-2022-3517

Indicators of Compromise

  • Unusual CPU spikes or sustained high CPU usage in Node.js application processes
  • Application unresponsiveness or timeout errors correlating with user-supplied input processing
  • Memory consumption anomalies in processes handling glob pattern matching
  • Increased response times for endpoints that accept file path or pattern inputs

Detection Strategies

  • Implement application performance monitoring to detect abnormal CPU utilization patterns in Node.js services
  • Use dependency scanning tools such as npm audit, Snyk, or Dependabot to identify vulnerable minimatch versions in your dependency tree
  • Monitor application logs for request timeout errors that may indicate ReDoS attacks
  • Deploy Web Application Firewalls (WAF) with rules to detect and block excessively long or malformed glob pattern inputs

Monitoring Recommendations

  • Set up alerts for CPU utilization exceeding baseline thresholds on application servers running Node.js workloads
  • Implement request timeout monitoring to identify potential DoS attack patterns
  • Regularly audit the software bill of materials (SBOM) for applications to track minimatch version usage across your environment

How to Mitigate CVE-2022-3517

Immediate Actions Required

  • Update the minimatch package to a patched version that addresses the ReDoS vulnerability
  • Run npm audit or equivalent dependency scanning tools to identify all projects using vulnerable minimatch versions
  • Review application code to identify endpoints that accept user-supplied glob patterns and implement input validation
  • Consider implementing request timeouts and rate limiting for endpoints that process pattern matching operations

Patch Information

The maintainers of minimatch have released a fix for this vulnerability. The specific commit addressing the issue is available at the minimatch GitHub repository. Users should update to the latest version of minimatch that includes this fix.

For Linux distributions:

  • Debian users should refer to the Debian LTS Announcement for package update information
  • Fedora users should consult the Fedora package announcements for updated packages

Workarounds

  • Implement input validation to reject glob patterns exceeding a reasonable length threshold before passing to minimatch
  • Set execution timeouts for pattern matching operations to prevent extended CPU consumption
  • Use alternative glob matching libraries that are not affected by this vulnerability as a temporary measure
  • Deploy rate limiting on endpoints that accept user-controlled pattern inputs to limit the impact of exploitation attempts
bash
# Update minimatch to latest patched version
npm update minimatch

# Audit project dependencies for vulnerable packages
npm audit

# Fix vulnerabilities automatically where possible
npm audit fix

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechMinimatch

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

  • CWE-1333
  • Technical References
  • Debian LTS Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement
  • Vendor Resources
  • GitHub Issue #329

  • GitHub Commit A8763F5
  • Related CVEs
  • CVE-2026-27904: minimatch DOS Vulnerability

  • CVE-2026-27903: minimatch DOS Vulnerability

  • CVE-2026-26996: Minimatch ReDoS Denial of Service Flaw
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