Skip to main content
MEDIUM

CVE-2024-4067

CVSS v3

5.3

MEDIUM

EPSS Score

1.4 %

exploit probability, as of 2026-10-19

CISA KEV

No

known exploited

Exploitation

—

SSVC status

Get an alert for each new CVE published for micromatch.

Set up CVE WatchFree account · no credit card

Affected and fixed versions

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • micromatchnpmall versions · fixed in 4.0.8

Vendor advisories

  • CVE-2024-4067 Red Hat Product Security81 products fixed · 27 known affected

    micromatch: vulnerable to Regular Expression Denial of Service

    micromatch as a component of Cryostat 2 · micromatch as a component of OpenShift Serverless · 3scale-amp-system-container as a component of Red Hat 3scale API Management Platform 2

  • RHSA-2025:23225 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Red Hat OpenShift Dev Spaces 3.25.0 Release.

  • RHSA-2024:10775 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: ACS 4.6 enhancement and security update

  • RHSA-2024:8906 Red Hat Product Security32 products fixed

    Red Hat Security Advisory: Satellite 6.16.0 release

  • RHBA-2024:7523 Red Hat Product Security1 product fixed

    Red Hat Bug Fix Advisory: Red Hat Developer Hub 1.3.0 release

  • RHSA-2024:6211 Red Hat Product Security40 products fixed

    Red Hat Security Advisory: Red Hat OpenShift Service Mesh Containers for 2.6.1 security update

Full record on NVD

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.

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Published
2024-05-14
Last Modified
2025-08-04

Frequently asked questions

What is CVE-2024-4067?

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.

Is CVE-2024-4067 actively exploited?

Active exploitation of CVE-2024-4067 has not been confirmed. Its EPSS score was 1.4% on 2026-10-19, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2024-4067?

CVE-2024-4067 has a CVSS v3 base score of 5.3 (MEDIUM severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.

Running micromatch? Hear about its next vulnerability

CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.

Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month