CVE-2024-4067 json
Regular Expression Denial of Service in micromatch
published 2024-05-13 2 y ago modified 2026-09-10 1 mo ago also GHSA-952p-6rrq-rcjv , EUVD-2024-1540
- cvss
- 5.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.4%
- EPSS 1.4% chance of exploitation in 30 days, percentile 73%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm micromatch 4.0.8
- micromatch micromatch 4.0.8
- node-micromatch Debian 14, Debian 13 4.0.7+~4.0.7-1
debian advisories DEBIAN-CVE-2024-4067
- cjson satellite capsule 6.16, satellite 6.16 1.7.17-1.el8sat
- cjson satellite capsule 6.16, satellite 6.16 1.7.17-1.el9sat
- foreman satellite utils 6.16, satellite capsule 6.16, satellite 6.16 3.12.0.1-1.el8sat
- foreman satellite utils 6.16, satellite capsule 6.16, satellite 6.16 3.12.0.1-1.el9sat
- katello satellite capsule 6.16, satellite 6.16 4.14.0-0.1.rc2.el8sat
- katello satellite capsule 6.16, satellite 6.16 4.14.0-0.1.rc2.el9sat
- libsolv satellite capsule 6.16, satellite 6.16 1:0.7.20-6.el8sat
- libcomps satellite capsule 6.16, satellite 6.16 0.1.21-1.el8pc
red hat advisories RHSA-2024:8906
- pgadmin4 SLE Module for Python 3 15 SP6, openSUSE Leap 15.6 8.5-150600.3.6.1
suse advisories SUSE-SU-2024:3771-1
- velociraptor openSUSE Tumbleweed 0.7.0.4.git142.862ef23-1.1
opensuse advisories openSUSE-SU-2025:14663-1
- github.com/micromatch/micromatch@03aa805 commit
- github.com/micromatch/micromatch@500d5d6 commit
- github.com/micromatch/micromatch#266 pull request
- github.com/micromatch/micromatch#247 pull request
- github.com/micromatch/micromatch/releases/tag/4.0.8 release
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-4067 updated cvss 7.5
micromatch: vulnerable to Regular Expression Denial of Service
-
Red Hat Cryostat 2 micromatchaffected: workaround, no fix available
-
Red Hat OpenShift Serverless micromatch Red Hat 3scale API Management Platform 2 3scale-amp2/system-rhel7 Red Hat build of Apache Camel - HawtIO 4 micromatch Red Hat build of OptaPlanner 8 micromatch Red Hat Data Grid 8 micromatch Red Hat Discovery 1 discovery-server-containeraffected: workaround, no fix planned “Will not fix”
-
Red Hat Enterprise Linux 6 firefox, thunderbird Red Hat Enterprise Linux 7 firefox, thunderbirdaffected: workaround, no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 8 pcs, pcs-snmp Red Hat Enterprise Linux 9 pcs, pcs-snmp Red Hat Fuse 7 micromatch Red Hat Integration Camel K 1 micromatchaffected: workaround, no fix planned “Will not fix”
-
Red Hat JBoss Data Grid 7 micromatch Red Hat JBoss Enterprise Application Platform 7 micromatchaffected: workaround, no fix planned “Out of support scope”
-
Red Hat Process Automation 7 micromatchaffected: workaround, no fix available
-
Red Hat Satellite 6 rubygem-rablaffected: workaround, no fix planned “Will not fix”
-
Red Hat Logging Subsystem for Red Hat OpenShift openshift-logging/kibana6-rhel8, openshift-logging/logging-view-plugin-rhel9 Red Hat Migration Toolkit for Applications 7 mta/mta-ui-rhel9, mta/mta-cli-rhel9 Red Hat Migration Toolkit for Containers rhmtc/openshift-migration-ui-rhel8 Red Hat Migration Toolkit for Runtimes micromatch Red Hat Migration Toolkit for Virtualization migration-toolkit-virtualization/mtv-console-plugin-rhel9 Red Hat Network Observability Operator network-observability/network-observability-console-plugin-rhel9under investigation
+16 more productsfewer
Red Hat Node HealthCheck Operator workload-availability/node-remediation-console-rhel8 Red Hat OpenShift Pipelines openshift-pipelines/pipelines-hub-ui-rhel8, openshift-pipelines/pipelines-console-plugin-rhel8 Red Hat OpenShift Service Mesh 2 openshift-service-mesh/kiali-rhel8 Red Hat Advanced Cluster Security 3 advanced-cluster-security/rhacs-main-rhel8 Red Hat Ansible Automation Platform 2 automation-controller, aap-cloud-ui-container, automation-eda-controller, ansible-automation-platform-25/lightspeed-rhel8 Red Hat OpenShift Container Platform 3.11 openshift3/ose-console Red Hat OpenShift Container Platform 4 openshift4/ose-console, openshift4/ose-monitoring-plugin-rhel9, openshift4/nmstate-console-plugin-rhel9, openshift4/ose-networking-console-plugin-rhel9 Red Hat Openshift Container Storage 4 ocs4/mcg-core-rhel8 Red Hat Openshift Data Foundation 4 odf4/mcg-core-rhel8, odf4/odf-console-rhel9 Red Hat OpenShift Data Science (RHODS) rhods/odh-rhel8-operator, rhods/odh-dashboard-rhel8 Red Hat OpenShift Dev Spaces devspaces/code-rhel8 Red Hat OpenShift distributed tracing 2 rhosdt/jaeger-agent-rhel8 Red Hat OpenShift distributed tracing 3 rhosdt/jaeger-agent-rhel8 Red Hat OpenShift GitOps openshift-gitops-1/argocd-rhel8, openshift-gitops-1/argo-rollouts-rhel8, openshift-gitops-1/console-plugin-rhel8, openshift-gitops-1/gitops-operator-bundle Red Hat OpenShift Virtualization 4 container-native-virtualization/kubevirt-console-plugin, container-native-virtualization/kubevirt-console-plugin-rhel9 Red Hat Quay 3 quay/quay-rhel8
show 1 moreshow fewer
-
Red Hat Developer Hub 1.3 for RHEL 9 rhdh/rhdh-hub-rhel9 1.3-100fixed: vendor fix RHBA-2024:7523
6 more fixed, 13 more not affected in the full advisory
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
1.43% chance of exploitation in the next 30 days, higher than 73% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- advisory.checkmarx.net https://advisory.checkmarx.net/advisory/CVE-2024-4067/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | micromatch | <4.0.8 |
4.0.8 |
Affected products
- micromatch micromatch
Classification
- Weakness
-
- CWE-1333 Inefficient Regular Expression Complexity
References
-
github.com
/micromatch/micromatch/pull/266
web, issue-tracking, patch
-
github.com
/micromatch/micromatch/commit/03aa8052171e878897eee5d7bb2ae0ae83ec2ade
web, patch
-
github.com
/micromatch/micromatch/pull/247
web, issue-tracking, patch
-
github.com
/micromatch/micromatch/commit/500d5d6f42f0e8dfa1cb5464c6cb420b1b6aaaa0
web
-
advisory.checkmarx.net
/advisory/CVE-2024-4067/
exploit, third-party-advisory
-
devhub.checkmarx.com
/cve-details/CVE-2024-4067/
third-party-advisory
-
github.com
/micromatch/micromatch/releases/tag/4.0.8
web, release-notes
-
github.com
/micromatch/micromatch/blob/2c56a8604b68c1099e7bc0f807ce0865a339747a/index.js#L448
web, product
-
github.com
/micromatch/micromatch/issues/243
web, issue-tracking
-
nvd.nist.gov
/vuln/detail/CVE-2024-4067
advisory
-
advisory.checkmarx.net
/advisory/CVE-2024-4067
web
-
devhub.checkmarx.com
/cve-details/CVE-2024-4067
web
-
github.com
/micromatch/micromatch
package
Sources
- CVE List CVE-2024-4067
- GitHub Advisory GHSA-952p-6rrq-rcjv
- NVD CVE-2024-4067
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.