VDB

CVE-2024-4067

CVE-2024-4067 PUBLISHED CVSS 5.3 MEDIUM

Regular Expression Denial of Service in micromatch

Reported by checkmarx · Published May 13, 2024

micromatch is fixed in 4.0.8 (npm)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
micromatchnpm4.0.8
gitlab-rails-ce-fips-18.1Chainguard18.1.6-r15
gitlab-rails-ce-fips-19.0Chainguard19.0.9-r3
gitlab-rails-ce-fips-18.9Chainguard18.9.8-r8
opensearch-dashboards-2Wolfi2.19.1-r3
kubeflow-katibChainguard0.19.0-r40, 0.19.0-r31
kibana-8Chainguard8.15.3-r0
arangodb-3.11Chainguard3.11.14.5-r25
gitlab-rails-ce-19.3Chainguard19.3.1-r6
semaphoreChainguard2.18.12-r2
py3-captumChainguard0.9.0-r1
argo-workflows-3.7Chainguard3.7.13-r2

27 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected products

VendorProductVersions
micromatchmicromatch0, 4.0.8
chainguardgitlab-rails-ce-fips-18.10
chainguardgitlab-rails-ce-fips-19.00
chainguardgitlab-rails-ce-fips-18.90
wolfiopensearch-dashboards-20
chainguardkubeflow-katib0, 0
chainguardkibana-80
chainguardarangodb-3.110
jonschlinkertmicromatch
npmmicromatch0
chainguardgitlab-rails-ce-19.30
chainguardsemaphore0
chainguardpy3-captum0
micromatchmicromatch0
micromatchmicromatch4.0.8, 0
chainguardargo-workflows-3.70
chainguardgitlab-rails-ce-fips-18.100
chainguardgitlab-rails-ce-fips-19.30
chainguardkubeflow-pipelines0
chainguardlerna0

…and 22 more

Timeline

  • May 13, 2024 CVE Published
  • May 14, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (14 in total, the first dated here)
  • Jan 7, 2026 CVE Updated
  • Mar 10, 2026 Security Advisory (22 in total, the first dated here)
  • Nov 21, 2026 Distribution Patch (20 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-4067
vulnetix vdb fixes CVE-2024-4067

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-4067/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›