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

CVE-2022-24373: React Native Reanimated ReDoS Vulnerability

CVE-2022-24373 is a Regular Expression Denial of Service vulnerability in Swmansion React Native Reanimated affecting versions before 3.0.0-rc.1. This article covers technical details, affected versions, and mitigation.

Published: February 17, 2026

CVE-2022-24373 Overview

CVE-2022-24373 is a Regular Expression Denial of Service (ReDoS) vulnerability affecting the react-native-reanimated package before version 3.0.0-rc.1. The vulnerability exists due to improper usage of regular expressions in the parser of Colors.js, allowing attackers to cause application hangs or crashes by providing specially crafted input that triggers catastrophic backtracking in the regex engine.

Critical Impact

Attackers can remotely trigger denial of service conditions in React Native applications using vulnerable versions of react-native-reanimated, potentially rendering mobile applications unresponsive.

Affected Products

  • react-native-reanimated versions prior to 3.0.0-rc.1
  • Applications built with vulnerable versions of the swmansion react_native_reanimated package
  • React Native mobile applications utilizing the Colors.js parser functionality

Discovery Timeline

  • 2022-09-30 - CVE-2022-24373 published to NVD
  • 2025-05-20 - Last updated in NVD database

Technical Details for CVE-2022-24373

Vulnerability Analysis

This vulnerability falls under CWE-1333 (Inefficient Regular Expression Complexity), a category of algorithmic complexity attacks that specifically targets regular expression implementations. The Colors.js parser in react-native-reanimated contains a regular expression pattern that exhibits exponential time complexity when processing certain input strings.

When a malicious input is provided to the color parsing functionality, the regex engine enters a state of catastrophic backtracking. This occurs because the pattern contains nested quantifiers or overlapping alternations that cause the engine to explore an exponentially growing number of possible matches before ultimately failing. During this process, the JavaScript runtime becomes blocked, causing the application to freeze or become completely unresponsive.

The vulnerability can be exploited remotely over the network without requiring any authentication or user interaction. While the attack does not compromise data confidentiality or integrity, it can completely exhaust system resources and cause significant availability disruption.

Root Cause

The root cause of CVE-2022-24373 lies in the inefficient regular expression patterns used within the Colors.js file of the react-native-reanimated library. The vulnerable regex pattern was designed to parse color values but lacks safeguards against pathological input patterns. When confronted with specially crafted strings that nearly match the expected pattern but ultimately fail, the regex engine exhaustively explores all possible matching permutations, leading to exponential processing time.

Attack Vector

The attack vector for this vulnerability is network-based, requiring an attacker to supply malicious color string input to the affected parsing function. This could occur through:

  • User-supplied color values in application forms or configuration
  • Data received from external APIs or services processed by the application
  • Deep links or URL parameters containing color specifications
  • Inter-process communication in React Native bridges

The vulnerability is exploitable without authentication or privileges, and no user interaction is required beyond the application processing the malicious input.

The vulnerability manifests in the color parsing regular expression within Colors.js. The fix implemented in pull request #3382 addresses the inefficient regex pattern by rewriting it to avoid catastrophic backtracking. For technical details on the specific code changes, refer to the commit details.

Detection Methods for CVE-2022-24373

Indicators of Compromise

  • Unexplained application freezes or hangs during color value processing
  • Elevated CPU usage in JavaScript threads without corresponding user activity
  • Application Not Responding (ANR) errors in mobile applications with color parsing operations
  • Timeout errors in components that accept color inputs

Detection Strategies

  • Implement dependency scanning in CI/CD pipelines to identify react-native-reanimated versions prior to 3.0.0-rc.1
  • Monitor application performance metrics for sudden CPU spikes correlated with color input processing
  • Use Software Composition Analysis (SCA) tools to track vulnerable package versions across projects
  • Deploy runtime protection that can detect and interrupt long-running regex operations

Monitoring Recommendations

  • Configure alerting for JavaScript thread execution times exceeding normal thresholds
  • Monitor application crash reports and ANR statistics for patterns indicating ReDoS attacks
  • Implement logging around color parsing functions to correlate with performance anomalies
  • Track package.json and yarn.lock files for vulnerable dependency versions

How to Mitigate CVE-2022-24373

Immediate Actions Required

  • Upgrade react-native-reanimated to version 3.0.0-rc.1 or later immediately
  • Audit all applications using react-native-reanimated and prioritize updates based on exposure risk
  • Review application code for direct usage of the Colors.js parser with untrusted input
  • Implement input validation to reject malformed color strings before they reach the parser

Patch Information

The vulnerability has been addressed in react-native-reanimated version 3.0.0-rc.1 and later. The fix is available through the official release. Organizations should update their package.json to require the patched version:

For detailed information about the vulnerability and fix, consult the Snyk Vulnerability Report.

Workarounds

  • Implement input sanitization to validate and normalize color values before passing them to the reanimated library
  • Add timeout wrappers around color parsing operations to prevent infinite processing
  • Consider implementing server-side color validation to filter malicious inputs before they reach mobile clients
  • Temporarily restrict color customization features until the upgrade can be completed
bash
# Configuration example
# Update react-native-reanimated to patched version
npm install react-native-reanimated@^3.0.0-rc.1

# Or using yarn
yarn add react-native-reanimated@^3.0.0-rc.1

# Verify installed version
npm list react-native-reanimated

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechReact Native Reanimated

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.53%

  • 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-1333
  • Vendor Resources
  • GitHub Pull Request

  • GitHub Commit Details

  • GitHub Release Tag

  • Snyk Vulnerability Report
  • Latest CVEs
  • CVE-2025-52793: Esselink.nu Settings CSRF Vulnerability

  • CVE-2025-52772: Virtual Moderator CSRF Vulnerability

  • CVE-2025-48279: WC MyParcel Belgium XSS Vulnerability

  • CVE-2025-39381: KiotViet Sync CSRF 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