CVE-2024-4067: Regular Expression Denial of Service in micromatch
Vulnerability summary
CVE-2024-4067 is a medium (CVSS 5.3) vulnerability in jonschlinkert micromatch. EPSS estimates a 1.43% chance of exploitation in the next 30 days, higher than 73% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 4 · Related 7Timeline
- 13-05-2024PublishedVulnerability first disclosed.
- 17-09-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · DebianEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · WolfiEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · NpmEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · ChainguardEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- NVDNIST5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS trend
Probability
1.43%
Chance of exploitation in the next 30 days
Percentile
73%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.43% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (advisory.checkmarx.net)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard78 products
- arangodb-3.11< 3.11.14.5-r25
- arangodb-3.12< 3.12.11-r0
- argo-workflows< 3.6.0-r1
- argo-workflows-ui-3.7< 3.7.13-r2
- gitlab-rails-ce-18.1All versions (No fix recorded)
Wolfi16 products
- argo-workflows< 3.6.0-r1
- argo-workflows-ui-3.7< 3.7.13-r2
- katib-earlystopping< 0.19.0-r31
- katib-suggestion-goptuna-compatAll versions (No fix recorded)
- katib-suggestion-hyperband< 0.19.0-r31
Debian1 product
- node-micromatchAll versions (No fix recorded) | < 4.0.7+~4.0.7-1
Jonschlinkert1 product
- micromatch< 4.0.8
Micromatch1 product
- micromatch< 4.0.8
Npm1 product
- micromatch< 4.0.8
Ubuntu1 product
- node-micromatchAll versions (No fix recorded)
7 vendors · 99 products
References
18 links- github.com/micromatch/micromatch/blob/2c56a8604b68c1099e7bc0f807ce0865a339747a/index.jsX TransferredREPORTWEBProduct