CVE-2024-4067 Details
Description
The NPM package `micromatch` prior to 4.0.8 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. This issue was fixed in version 4.0.8.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 13, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://advisory.checkmarx.net/advisory/CVE-2024-4067/ | Checkmarx | ExploitThird Party Advisory |
| https://devhub.checkmarx.com/cve-details/CVE-2024-4067/ | Checkmarx | Third Party Advisory |
| https://github.com/micromatch/micromatch/commit/03aa8052171e878897eee5d7bb2ae0ae83ec2ade | Checkmarx | Patch |
| https://github.com/micromatch/micromatch/pull/266 | Checkmarx | Issue TrackingPatch |
| https://github.com/micromatch/micromatch/releases/tag/4.0.8 | Checkmarx | Release Notes |
| https://devhub.checkmarx.com/cve-details/CVE-2024-4067/ | CVE | Third Party Advisory |
| https://github.com/micromatch/micromatch/blob/2c56a8604b68c1099e7bc0f807ce0865a339747a/index.js#L448 | CVE | Product |
| https://github.com/micromatch/micromatch/issues/243 | CVE | Issue Tracking |
| https://github.com/micromatch/micromatch/pull/247 | CVE | Issue TrackingPatch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1333 | Inefficient Regular Expression Complexity | Checkmarx |
Affected Products
| Product | Versions |
|---|---|
| jonschlinkert micromatch | < 4.0.8 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | Checkmarx |
| Aug 4, 2025 | Initial Analysis | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| Aug 28, 2024 | CVE Modified | Checkmarx |
| May 22, 2024 | CVE Modified | Checkmarx |
| May 14, 2024 | New CVE Received | Checkmarx |