CVEfocus › CVE database › CVE-2024-4067

CVE-2024-4067Regular Expression Denial of Service in micromatch

CVSS 5.3 MediumEPSS 1.4% (higher than 74% of CVEs)Published 2024-05-13Updated 2024-09-17Assigner: Checkmarx

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.

CWE-1333

What to do

Fixed builds are available from Debian, npm: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
3Fix pending
3Under investigation
10Will not fix
22Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10node-micromatchFix pendingUBUNTU-CVE-2024-4067
Ubuntu 26.04node-micromatchUnder investigationUBUNTU-CVE-2024-4067
Ubuntu 25.10node-micromatchWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-4067
Ubuntu 24.04node-micromatchUnder investigationUBUNTU-CVE-2024-4067
Ubuntu 22.04node-micromatchUnder investigationUBUNTU-CVE-2024-4067
Ubuntu 20.04node-micromatchWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-4067
Ubuntu 18.04node-micromatchFix pendingUBUNTU-CVE-2024-4067
Debian 14node-micromatchFixed4.0.7+~4.0.7-1DEBIAN-CVE-2024-4067
Debian 13node-micromatchFixed4.0.7+~4.0.7-1DEBIAN-CVE-2024-4067
Debian 12node-micromatchFix pendingDEBIAN-CVE-2024-4067
Red Hat Enterprise Linux 9gjsNot affected
Red Hat Enterprise Linux 9gjs-develNot affected
Red Hat Enterprise Linux 9pcsWill not fix
Will not fix
Red Hat Enterprise Linux 9pcs-snmpWill not fix
Will not fix
Red Hat Enterprise Linux 9polkitNot affected
Red Hat Enterprise Linux 9polkit-develNot affected
Red Hat Enterprise Linux 9polkit-docsNot affected
Red Hat Enterprise Linux 9polkit-libsNot affected
Red Hat Enterprise Linux 8grafanaNot affected
Red Hat Enterprise Linux 8grafana-azure-monitorNot affected
Red Hat Enterprise Linux 8grafana-cloudwatchNot affected
Red Hat Enterprise Linux 8grafana-elasticsearchNot affected
Red Hat Enterprise Linux 8grafana-graphiteNot affected
Red Hat Enterprise Linux 8grafana-influxdbNot affected
Red Hat Enterprise Linux 8grafana-lokiNot affected
Red Hat Enterprise Linux 8grafana-mssqlNot affected
Red Hat Enterprise Linux 8grafana-mysqlNot affected
Red Hat Enterprise Linux 8grafana-opentsdbNot affected
Red Hat Enterprise Linux 8grafana-postgresNot affected
Red Hat Enterprise Linux 8grafana-prometheusNot affected
Red Hat Enterprise Linux 8grafana-selinuxNot affected
Red Hat Enterprise Linux 8grafana-stackdriverNot affected
Red Hat Enterprise Linux 8mozjs60Not affected
Red Hat Enterprise Linux 8mozjs60-develNot affected
Red Hat Enterprise Linux 8pcsWill not fix
Will not fix
Red Hat Enterprise Linux 8pcs-snmpWill not fix
Will not fix
Red Hat Enterprise Linux 7firefoxWill not fix
Out of support scope
Red Hat Enterprise Linux 7thunderbirdWill not fix
Out of support scope
Red Hat Enterprise Linux 6firefoxWill not fix
Out of support scope
Red Hat Enterprise Linux 6thunderbirdWill not fix
Out of support scope
npm librarymicromatchFixed4.0.8GHSA-952p-6rrq-rcjv

What the vendor says

As published in the CVE record by Checkmarx, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.