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-2024-4067

CVE-2024-4067: Jonschlinkert Micromatch DoS Vulnerability

CVE-2024-4067 is a Regular Expression Denial of Service flaw in the Jonschlinkert Micromatch NPM package that causes applications to hang or slow down. This article covers technical details, affected versions, and mitigation.

Published: January 28, 2026

CVE-2024-4067 Overview

The NPM package micromatch prior to version 4.0.8 is vulnerable to Regular Expression Denial of Service (ReDoS). This vulnerability occurs in the micromatch.braces() function within index.js where the pattern .* greedily matches input without proper constraints. By passing a malicious payload, the pattern matching will continuously backtrack while searching for a closing bracket, causing severe performance degradation.

As the input size increases, the consumption time grows exponentially until it causes the application to hang or become unresponsive. The micromatch package is widely used in the Node.js ecosystem for glob matching and file path pattern matching, making this vulnerability particularly impactful for build tools, bundlers, and file processing applications.

Critical Impact

Applications using vulnerable versions of micromatch can be rendered unresponsive through crafted input payloads, causing denial of service conditions in production environments.

Affected Products

  • jonschlinkert micromatch versions prior to 4.0.8
  • Node.js applications using micromatch for glob pattern matching
  • Build tools and bundlers that depend on micromatch

Discovery Timeline

  • May 14, 2024 - CVE-2024-4067 published to NVD
  • August 4, 2025 - Last updated in NVD database

Technical Details for CVE-2024-4067

Vulnerability Analysis

This ReDoS vulnerability stems from inefficient regular expression handling in the micromatch.braces() function. When processing user-supplied patterns, the regex engine encounters catastrophic backtracking due to greedy quantifiers combined with nested pattern structures.

The vulnerability specifically affects the brace expansion functionality where unclosed or malformed brace patterns trigger exponential time complexity in the regex evaluation. An initial fix was merged but further testing revealed the issue persisted, requiring additional remediation in version 4.0.8.

The attack can be executed remotely without authentication, targeting any application that processes user-controlled input through micromatch's pattern matching functions. While the vulnerability only affects availability (not confidentiality or integrity), it can effectively disable application functionality.

Root Cause

The root cause is the use of a greedy regex pattern (.*) in the brace expansion logic within index.js. When the pattern encounters input without a proper closing bracket, the regex engine attempts to match progressively, backtracking through the entire input string repeatedly. This creates an algorithmic complexity attack where processing time grows exponentially with input length.

The vulnerable code pattern at line 448 of index.js demonstrates how unconstrained greedy matching leads to the ReDoS condition.

Attack Vector

The attack vector is network-based, requiring no privileges or user interaction. An attacker can exploit this vulnerability by:

  1. Identifying an application endpoint that processes file paths or glob patterns through micromatch
  2. Crafting a malicious input string with nested braces and missing closing brackets
  3. Submitting the payload to trigger catastrophic backtracking in the regex engine
  4. Repeating the attack to exhaust server resources and cause denial of service

The attack is particularly effective against web applications, build servers, and file processing APIs that accept user-controlled pattern input without proper validation or timeout mechanisms.

Detection Methods for CVE-2024-4067

Indicators of Compromise

  • Unusual CPU spikes during pattern matching operations in Node.js applications
  • Application response times degrading significantly when processing specific file patterns
  • Increased memory consumption in processes handling glob or brace expansion
  • Server timeouts or unresponsive application states triggered by specific input patterns

Detection Strategies

  • Monitor Node.js application performance for abnormal CPU utilization patterns during file operations
  • Implement logging for pattern matching function calls to identify malicious input attempts
  • Use dependency scanning tools to identify applications running micromatch versions below 4.0.8
  • Deploy application performance monitoring to detect sudden latency increases in glob-related endpoints

Monitoring Recommendations

  • Set up alerts for Node.js process CPU usage exceeding baseline thresholds
  • Monitor application request queue depths for signs of processing delays
  • Track pattern matching operation durations and alert on outliers
  • Review application logs for repeated requests with unusual brace patterns or nested structures

How to Mitigate CVE-2024-4067

Immediate Actions Required

  • Update micromatch package to version 4.0.8 or later immediately
  • Audit all Node.js applications and build pipelines for micromatch dependencies
  • Implement input validation to reject overly complex or malformed glob patterns
  • Add timeout mechanisms for pattern matching operations as a defensive measure

Patch Information

The vulnerability was fixed in micromatch version 4.0.8. The fix addresses the greedy regex pattern issue to prevent catastrophic backtracking. The patch is available through the official GitHub release and can be applied by updating the package via npm.

The security fix was implemented through Pull Request #266 with the specific commit available at 03aa805.

Workarounds

  • Implement input length limits on user-supplied patterns before passing to micromatch
  • Add request timeouts to endpoints that process glob patterns to limit impact duration
  • Use pattern validation to reject inputs containing suspicious nested brace structures
  • Consider implementing a pattern complexity check before processing user input
bash
# Update micromatch to patched version
npm update micromatch

# Or explicitly install the fixed version
npm install micromatch@4.0.8

# Audit your project for vulnerable dependencies
npm audit

# Check current micromatch version in your project
npm list micromatch

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechMicromatch

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.13%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-1333
  • Technical References
  • Checkmarx CVE-2024-4067 Advisory

  • Checkmarx CVE-2024-4067 Details

  • GitHub Micromatch Release 4.0.8

  • GitHub Micromatch Code Reference

  • GitHub Micromatch Issue 243
  • Vendor Resources
  • GitHub Micromatch Commit

  • GitHub Micromatch Pull Request

  • GitHub Micromatch Pull Request 247
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 XSS Vulnerability
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