CVE-2022-24373
JavaScript vulnerability analysis and mitigation

Overview

The vulnerability CVE-2022-24373 affects the react-native-reanimated package versions before 3.0.0-rc.1. This security flaw is identified as a Regular Expression Denial of Service (ReDoS) vulnerability, which was discovered due to improper usage of regular expressions in the package's color parsing functionality. The vulnerability was disclosed on July 13, 2022, and was officially published on September 29, 2022 (Snyk DB).

Technical details

The vulnerability stems from a problematic regular expression implementation in the Colors.js parser. The vulnerable regex pattern ^[-+]?\d*.?\d+$ could be exploited to cause catastrophic backtracking, leading to excessive CPU consumption. The vulnerability was assigned a CVSS score of 5.3 (medium) by Snyk, with attack vector being Network, attack complexity Low, and requiring no privileges or user interaction (Snyk DB).

Impact

When exploited, this vulnerability can cause performance degradation or service interruptions by forcing the application to process a maliciously crafted input that triggers the vulnerable regular expression pattern. This results in excessive CPU consumption, potentially leading to partial availability issues of the affected service (Snyk DB).

Mitigation and workarounds

The vulnerability was fixed by updating the regular expression pattern to [-+]?\d*(?:.\d*)?, which prevents catastrophic backtracking. Users should upgrade react-native-reanimated to version 3.0.0-rc.1 or higher to address this vulnerability. The fix was implemented in PR #3382 and included in the 3.0.0-rc.1 release (GitHub Release).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-55182CRITICAL10
  • JavaScriptJavaScript
  • react
NoYesDec 03, 2025
CVE-2025-66401CRITICAL9.8
  • JavaScriptJavaScript
  • mcp-watch
NoNoDec 01, 2025
CVE-2025-66412HIGH8.5
  • JavaScriptJavaScript
  • @angular/compiler
NoYesDec 01, 2025
CVE-2025-66415MEDIUM6.9
  • JavaScriptJavaScript
  • @fastify/reply-from
NoYesDec 01, 2025
CVE-2025-66405MEDIUM6.9
  • JavaScriptJavaScript
  • @portkey-ai/gateway
NoYesDec 01, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management