CVE-2024-4067

CVSS V2 None CVSS V3 None
Description
The NPM package `micromatch` is vulnerable to Regular Expression Denial of Service (ReDoS). The vulnerability occurs in `micromatch.braces()` in `index.js` because the pattern `.*` will greedily match anything. By passing a malicious payload, the pattern matching will keep backtracking to the input while it doesn't find the closing bracket. As the input size increases, the consumption time will also increase until it causes the application to hang or slow down. There was a merged fix but further testing shows the issue persists. This issue should be mitigated by using a safe pattern that won't start backtracking the regular expression due to greedy matching.
Overview
  • CVE ID
  • CVE-2024-4067
  • Assigner
  • Checkmarx
  • Vulnerability Status
  • PUBLISHED
  • Published Version
  • 2024-05-13T10:04:42.886Z
  • Last Modified Date
  • 2024-06-04T17:55:00.727Z
History
Created Old Value New Value Data Type Notes
2024-06-23 22:02:32 Added to TrackCVE