CVE-2024-4067Regular Expression Denial of Service in micromatch
- 5.3MediumCVSS base score
- 1.4%Exploitation in 30 daysEPSS · top 27% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By Checkmarx
- 20 days later
· 20 days later
Published
- 4 months later
· 4 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| CheckmarxCNA (assigner) | 3.1 | Medium5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVDNVD · Analyzed | 3.1 | Medium5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
- EPSS (exploitation in 30 days)
- 1.4% · top 27% of all CVEs (12 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: yes · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.3.
Affected products
- affected < 4.0.8
- unaffected 4.0.8
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npmmicromatchGHSA-952p-6rrq-rcjv (opens in a new tab)
References
References8
- https://devhub.checkmarx.com/cve-details/CVE-2024-4067/ (opens in a new tab)third-party-advisoryx_transferred
- https://github.com/micromatch/micromatch/pull/266 (opens in a new tab)
- https://github.com/micromatch/micromatch/commit/03aa8052171e878897eee5d7bb2ae0ae83ec2ade (opens in a new tab)
- https://github.com/micromatch/micromatch/releases/tag/4.0.8 (opens in a new tab)
- https://advisory.checkmarx.net/advisory/CVE-2024-4067/ (opens in a new tab)
- https://github.com/micromatch/micromatch/blob/2c56a8604b68c1099e7bc0f807ce0865a339747a/index.js#L448 (opens in a new tab)x_transferred
- https://github.com/micromatch/micromatch/issues/243 (opens in a new tab)x_transferred
- https://github.com/micromatch/micromatch/pull/247 (opens in a new tab)x_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2024-1540 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-952p-6rrq-rcjv (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2024-4067)Record last updated .