patchminder
No public exploit found CVE-2024-4067

Denial of servicein micromatch.

Published 13 May 2024 · Updated 17 Sep 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

No public exploit found; not on exploited lists.

Severity
Medium 5.3
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
Moderate
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 1.4% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 4.0.8 or later
In plain words

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.

What to do now
  • Upgrade micromatch to 4.0.8 or later.
  • Upgrade micromatch (npm) to 4.0.8 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
micromatch
before 4.0.8
4.0.8
CVE record
micromatch (npm)
before 4.0.8
4.0.8
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 23 Apr 2024
    CVE ID reserved by Checkmarx.
  2. 13 May 2024
    Published in the CVE List.
  3. 17 Sep 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: No public exploit found. CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Same weakness: Regular expression denial of service

All CWE-1333 vulnerabilities

References
Cite this page

Patchminder. CVE-2024-4067: Denial of service in micromatch. https://patchminder.com/cve/cve-2024-4067/ (accessed 5 December 2026).