# CVE-2024-4067: Regular Expression Denial of Service in micromatch

- Severity: Medium 5.3 (CVSS:3.1, scored by Checkmarx) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.43%, higher than 73% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-05-13T10:04:42.886Z
- Modified: 2026-09-10T03:50:13.524Z
- Also known as: GHSA-952p-6rrq-rcjv
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Checkmarx

## 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.

(As written by CVE List.)

## Affected

- micromatch: before 4.0.8 (not affected: 4.0.8)
- micromatch micromatch: before 4.0.8
- micromatch (npm): before 4.0.8
- jonschlinkert micromatch: before 4.0.8

## Every score

- Checkmarx: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://advisory.checkmarx.net/advisory/CVE-2024-4067/> (exploit, third-party-advisory)
- <https://devhub.checkmarx.com/cve-details/CVE-2024-4067/> (third-party-advisory)
- <https://github.com/micromatch/micromatch/pull/266> (issue-tracking, patch, web)
- <https://github.com/micromatch/micromatch/commit/03aa8052171e878897eee5d7bb2ae0ae83ec2ade> (patch, web)
- <https://github.com/micromatch/micromatch/releases/tag/4.0.8> (release-notes, web)
- <https://github.com/micromatch/micromatch/blob/2c56a8604b68c1099e7bc0f807ce0865a339747a/index.js#L448> (product, web)
- <https://github.com/micromatch/micromatch/issues/243> (issue-tracking, web)
- <https://github.com/micromatch/micromatch/pull/247> (issue-tracking, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-4067> (advisory)
- <https://github.com/micromatch/micromatch/commit/500d5d6f42f0e8dfa1cb5464c6cb420b1b6aaaa0> (web)
- <https://advisory.checkmarx.net/advisory/CVE-2024-4067> (web)
- <https://devhub.checkmarx.com/cve-details/CVE-2024-4067> (web)
- <https://github.com/micromatch/micromatch> (package)

## Sources

- CVE List: [CVE-2024-4067](https://www.cve.org/CVERecord?id=CVE-2024-4067), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-952p-6rrq-rcjv](https://github.com/advisories/GHSA-952p-6rrq-rcjv), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-4067](https://nvd.nist.gov/vuln/detail/CVE-2024-4067), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-4067 · Whole record: https://cve.day/CVE-2024-4067.json · Rebuilt by cve.day 2026-11-25T22:58:40.219Z
