cve.bz

CVE-2024-4067 jonschlinkert micromatch

5.3 mediumExploit referenceEPSS 1.4%Fix available

Medium (5.3) in jonschlinkert micromatch. EPSS 1.4% estimated probability of exploitation activity in the next 30 days. Fixed in micromatch 4.0.8.

On this page
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.

Severity

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
EPSS
1.4% (unchanged from 1.4% a week ago; 1.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 74th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2024-05-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-1333 Inefficient Regular Expression Complexity
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-4067 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-4067?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-4067?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-4067 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
micromatchbefore 4.0.8

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-952p-6rrq-rcjvnpmmicromatch<4.0.84.0.8

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12node-micromatchno fix listedDEBIAN-CVE-2024-4067
Debian13, 14node-micromatch4.0.7+~4.0.7-1DEBIAN-CVE-2024-4067
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTS and 4 morenode-micromatchno fix listedUBUNTU-CVE-2024-4067
Red Hatsatellite:6.16::el8ansiblerole-foreman_scap_client, rubygem-hammer_cli_foreman_templates, rubygem-hammer_cli_foreman_remote_execution0:0.3.0-1.el8satRHSA-2024:8906
Red Hatsatellite:6.16::el8postgresql-evr0:0.0.2-3.el8satRHSA-2024:8906
Red Hatsatellite:6.16::el8python-websockify, python3-websockify0:0.10.0-3.el8satRHSA-2024:8906
Red Hatsatellite:6.16::el8rubygem-azure_mgmt_compute0:0.22.0-1.el8satRHSA-2024:8906
Red Hatsatellite:6.16::el8rubygem-azure_mgmt_network0:0.26.1-2.el8satRHSA-2024:8906
Red Hatsatellite:6.16::el8rubygem-azure_mgmt_resources0:0.18.2-1.el8satRHSA-2024:8906
Red Hatsatellite:6.16::el8rubygem-azure_mgmt_storage0:0.23.0-1.el8satRHSA-2024:8906
Red Hatsatellite:6.16::el8rubygem-azure_mgmt_subscriptions0:0.18.5-1.el8satRHSA-2024:8906
Red Hatsatellite:6.16::el8rubygem-declarative0:0.0.20-1.el8satRHSA-2024:8906
Red Hatsatellite:6.16::el8rubygem-faraday-cookie_jar0:0.0.6-2.el8satRHSA-2024:8906
Red Hatsatellite:6.16::el8rubygem-fog-libvirt0:0.12.2-1.el8satRHSA-2024:8906
Red Hatsatellite:6.16::el8rubygem-fog-xml0:0.1.4-1.el8satRHSA-2024:8906
188 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Module for Python 3 15 SP6pgadmin48.5-150600.3.6.1SUSE-SU-2024:3771-1
openSUSELeap 15.6pgadmin48.5-150600.3.6.1SUSE-SU-2024:3771-1
openSUSETumbleweedvelociraptor0.7.0.4.git142.862ef23-1.1openSUSE-SU-2025:14663-1
Azure Linux2js-jqueryno fix listedAZL-43999
Azure Linux3js-jqueryno fix listedAZL-44454

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Advanced Cluster Security 4.6advanced-cluster-security/rhacs-main-rhel8:4.6.0-6Fixed 2024-12-04RHSA-2024:10775
Red Hat Developer Hub 1.3 on RHEL 9rhdh/rhdh-hub-rhel9:1.3-100Fixed 2024-10-02RHBA-2024:7523
Red Hat OpenShift Service Mesh 2.6 for RHEL 8openshift-service-mesh/grafana-rhel8:2.6.1-6Fixed 2024-09-03RHSA-2024:6211
Red Hat OpenShift Service Mesh 2.6 for RHEL 8openshift-service-mesh/istio-cni-rhel8:2.6.1-7Fixed 2024-09-03RHSA-2024:6211
Red Hat OpenShift Service Mesh 2.6 for RHEL 8openshift-service-mesh/istio-must-gather-rhel8:2.6.1-4Fixed 2024-09-03RHSA-2024:6211
Red Hat OpenShift Service Mesh 2.6 for RHEL 8openshift-service-mesh/istio-rhel8-operator:2.6.1-9Fixed 2024-09-03RHSA-2024:6211
Red Hat OpenShift Service Mesh 2.6 for RHEL 8openshift-service-mesh/kiali-ossmc-rhel8:1.89.0-2Fixed 2024-09-03RHSA-2024:6211
Red Hat OpenShift Service Mesh 2.6 for RHEL 8openshift-service-mesh/kiali-rhel8:1.89.1-3Fixed 2024-09-03RHSA-2024:6211
Red Hat OpenShift Service Mesh 2.6 for RHEL 8openshift-service-mesh/kiali-rhel8-operator:1.89.1-1Fixed 2024-09-03RHSA-2024:6211
Red Hat OpenShift Service Mesh 2.6 for RHEL 8openshift-service-mesh/pilot-rhel8:2.6.1-7Fixed 2024-09-03RHSA-2024:6211
Cryostat 2micromatchAffected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/kibana6-rhel8Under investigation
Logging Subsystem for Red Hat OpenShiftopenshift-logging/logging-view-plugin-rhel8Under investigation
Migration Toolkit for Applications 7mta/mta-cli-rhel9Under investigation
Migration Toolkit for Applications 7mta/mta-ui-rhel9Under investigation
Migration Toolkit for Containersrhmtc/openshift-migration-ui-rhel8Under investigation
Migration Toolkit for RuntimesmicromatchUnder investigation
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-console-plugin-rhel9Under investigation
Multicluster Engine for Kubernetesmulticluster-engine/console-mce-rhel9Not affected
Multicluster Engine for Kubernetesmulticluster-engine/multicluster-engine-console-mce-rhel9Not affected
63 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-4067.

Attack patterns (CAPEC)

  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON