Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
Vulnerability Details :

CVE-2024-4067

Summary
Assigner-Checkmarx
Assigner Org ID-596c5446-0ce5-4ba2-aa66-48b3b757a647
Published At-13 May, 2024 | 10:04
Updated At-17 Sep, 2024 | 19:47
Rejected At-
Credits

Regular Expression Denial of Service in micromatch

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.

Vendors
-
Not available
Products
-
Metrics (CVSS)
VersionBase scoreBase severityVector
Weaknesses
Attack Patterns
Solution/Workaround
References
HyperlinkResource Type
EPSS History
Score
Latest Score
-
N/A
No data available for selected date range
Percentile
Latest Percentile
-
N/A
No data available for selected date range
Stakeholder-Specific Vulnerability Categorization (SSVC)
▼Common Vulnerabilities and Exposures (CVE)
cve.org
Assigner:Checkmarx
Assigner Org ID:596c5446-0ce5-4ba2-aa66-48b3b757a647
Published At:13 May, 2024 | 10:04
Updated At:17 Sep, 2024 | 19:47
Rejected At:
▼CVE Numbering Authority (CNA)
Regular Expression Denial of Service in micromatch

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.

Affected Products
Vendor
micromatch
Product
micromatch
Collection URL
https://www.npmjs.com/package/micromatch
Package Name
micromatch
Repo
https://github.com/micromatch/micromatch
Program Files
  • index.js
Program Routines
  • micromatch.braces = (pattern, options) =>
Default Status
unaffected
Versions
Affected
  • From 0 before 4.0.8 (cpe)
Unaffected
  • 4.0.8 (cpe)
Problem Types
TypeCWE IDDescription
CWECWE-1333CWE-1333: Inefficient Regular Expression Complexity
Type: CWE
CWE ID: CWE-1333
Description: CWE-1333: Inefficient Regular Expression Complexity
Metrics
VersionBase scoreBase severityVector
3.15.3MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Version: 3.1
Base score: 5.3
Base severity: MEDIUM
Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

finder
Mário Teixeira, Checkmarx Research Group
Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://devhub.checkmarx.com/cve-details/CVE-2024-4067/
N/A
https://github.com/micromatch/micromatch/pull/266
N/A
https://github.com/micromatch/micromatch/commit/03aa8052171e878897eee5d7bb2ae0ae83ec2ade
N/A
https://github.com/micromatch/micromatch/releases/tag/4.0.8
N/A
https://advisory.checkmarx.net/advisory/CVE-2024-4067/
N/A
Hyperlink: https://devhub.checkmarx.com/cve-details/CVE-2024-4067/
Resource: N/A
Hyperlink: https://github.com/micromatch/micromatch/pull/266
Resource: N/A
Hyperlink: https://github.com/micromatch/micromatch/commit/03aa8052171e878897eee5d7bb2ae0ae83ec2ade
Resource: N/A
Hyperlink: https://github.com/micromatch/micromatch/releases/tag/4.0.8
Resource: N/A
Hyperlink: https://advisory.checkmarx.net/advisory/CVE-2024-4067/
Resource: N/A
▼Authorized Data Publishers (ADP)
1. CISA ADP Vulnrichment
Affected Products
Vendor
micromatch
Product
micromatch
CPEs
  • cpe:2.3:a:micromatch:micromatch:*:*:*:*:*:*:*:*
Default Status
unknown
Versions
Affected
  • From 0 before 4.0.8 (custom)
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
2. CVE Program Container
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://github.com/micromatch/micromatch/blob/2c56a8604b68c1099e7bc0f807ce0865a339747a/index.js#L448
x_transferred
https://github.com/micromatch/micromatch/issues/243
x_transferred
https://github.com/micromatch/micromatch/pull/247
x_transferred
https://devhub.checkmarx.com/cve-details/CVE-2024-4067/
third-party-advisory
x_transferred
Hyperlink: https://github.com/micromatch/micromatch/blob/2c56a8604b68c1099e7bc0f807ce0865a339747a/index.js#L448
Resource:
x_transferred
Hyperlink: https://github.com/micromatch/micromatch/issues/243
Resource:
x_transferred
Hyperlink: https://github.com/micromatch/micromatch/pull/247
Resource:
x_transferred
Hyperlink: https://devhub.checkmarx.com/cve-details/CVE-2024-4067/
Resource:
third-party-advisory
x_transferred
Information is not available yet
▼National Vulnerability Database (NVD)
nvd.nist.gov
Source:596c5446-0ce5-4ba2-aa66-48b3b757a647
Published At:14 May, 2024 | 15:42
Updated At:04 Aug, 2025 | 14:36

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.

CISA Catalog
Date AddedDue DateVulnerability NameRequired Action
N/A
Date Added: N/A
Due Date: N/A
Vulnerability Name: N/A
Required Action: N/A
Metrics
TypeVersionBase scoreBase severityVector
Secondary3.15.3MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Primary3.15.3MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Type: Secondary
Version: 3.1
Base score: 5.3
Base severity: MEDIUM
Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Type: Primary
Version: 3.1
Base score: 5.3
Base severity: MEDIUM
Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CPE Matches

jonschlinkert
jonschlinkert
>>micromatch>>Versions before 4.0.8(exclusive)
cpe:2.3:a:jonschlinkert:micromatch:*:*:*:*:*:node.js:*:*
Weaknesses
CWE IDTypeSource
CWE-1333Secondary596c5446-0ce5-4ba2-aa66-48b3b757a647
CWE ID: CWE-1333
Type: Secondary
Source: 596c5446-0ce5-4ba2-aa66-48b3b757a647
Evaluator Description

Evaluator Impact

Evaluator Solution

Vendor Statements

References
HyperlinkSourceResource
https://advisory.checkmarx.net/advisory/CVE-2024-4067/596c5446-0ce5-4ba2-aa66-48b3b757a647
Exploit
Third Party Advisory
https://devhub.checkmarx.com/cve-details/CVE-2024-4067/596c5446-0ce5-4ba2-aa66-48b3b757a647
Third Party Advisory
https://github.com/micromatch/micromatch/commit/03aa8052171e878897eee5d7bb2ae0ae83ec2ade596c5446-0ce5-4ba2-aa66-48b3b757a647
Patch
https://github.com/micromatch/micromatch/pull/266596c5446-0ce5-4ba2-aa66-48b3b757a647
Issue Tracking
Patch
https://github.com/micromatch/micromatch/releases/tag/4.0.8596c5446-0ce5-4ba2-aa66-48b3b757a647
Release Notes
https://devhub.checkmarx.com/cve-details/CVE-2024-4067/af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://github.com/micromatch/micromatch/blob/2c56a8604b68c1099e7bc0f807ce0865a339747a/index.js#L448af854a3a-2127-422b-91ae-364da2661108
Product
https://github.com/micromatch/micromatch/issues/243af854a3a-2127-422b-91ae-364da2661108
Issue Tracking
https://github.com/micromatch/micromatch/pull/247af854a3a-2127-422b-91ae-364da2661108
Issue Tracking
Patch
Hyperlink: https://advisory.checkmarx.net/advisory/CVE-2024-4067/
Source: 596c5446-0ce5-4ba2-aa66-48b3b757a647
Resource:
Exploit
Third Party Advisory
Hyperlink: https://devhub.checkmarx.com/cve-details/CVE-2024-4067/
Source: 596c5446-0ce5-4ba2-aa66-48b3b757a647
Resource:
Third Party Advisory
Hyperlink: https://github.com/micromatch/micromatch/commit/03aa8052171e878897eee5d7bb2ae0ae83ec2ade
Source: 596c5446-0ce5-4ba2-aa66-48b3b757a647
Resource:
Patch
Hyperlink: https://github.com/micromatch/micromatch/pull/266
Source: 596c5446-0ce5-4ba2-aa66-48b3b757a647
Resource:
Issue Tracking
Patch
Hyperlink: https://github.com/micromatch/micromatch/releases/tag/4.0.8
Source: 596c5446-0ce5-4ba2-aa66-48b3b757a647
Resource:
Release Notes
Hyperlink: https://devhub.checkmarx.com/cve-details/CVE-2024-4067/
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Third Party Advisory
Hyperlink: https://github.com/micromatch/micromatch/blob/2c56a8604b68c1099e7bc0f807ce0865a339747a/index.js#L448
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Product
Hyperlink: https://github.com/micromatch/micromatch/issues/243
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Issue Tracking
Hyperlink: https://github.com/micromatch/micromatch/pull/247
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Issue Tracking
Patch

Change History

0
Information is not available yet

Similar CVEs

54Records found

CVE-2021-43843
Matching Score-4
Assigner-GitHub, Inc.
ShareView Details
Matching Score-4
Assigner-GitHub, Inc.
CVSS Score-5.3||MEDIUM
EPSS-0.56% / 67.37%
||
7 Day CHG~0.00%
Published-20 Dec, 2021 | 21:15
Updated-04 Aug, 2024 | 04:10
Rejected-Not Available
Known To Be Used In Ransomware Campaigns?-Not Available
KEV Added-Not Available
KEV Action Due Date-Not Available
Insufficient patch for Regular Expression Denial of Service (ReDoS) to jsx-slack v4.5.1

jsx-slack is a package for building JSON objects for Slack block kit surfaces from JSX. The maintainers found the patch for CVE-2021-43838 in jsx-slack v4.5.1 is insufficient tfor protection from a Regular Expression Denial of Service (ReDoS) attack. If an attacker can put a lot of JSX elements into `<blockquote>` tag _with including multibyte characters_, an internal regular expression for escaping characters may consume an excessive amount of computing resources. v4.5.1 passes the test against ASCII characters but misses the case of multibyte characters. jsx-slack v4.5.2 has updated regular expressions for escaping blockquote characters to prevent catastrophic backtracking. It is also including an updated test case to confirm rendering multiple tags in `<blockquote>` with multibyte characters.

Action-Not Available
Vendor-jsx-slack_projectyhatt
Product-jsx-slackjsx-slack
CWE ID-CWE-400
Uncontrolled Resource Consumption
CWE ID-CWE-1333
Inefficient Regular Expression Complexity
CVE-2024-45813
Matching Score-4
Assigner-GitHub, Inc.
ShareView Details
Matching Score-4
Assigner-GitHub, Inc.
CVSS Score-5.3||MEDIUM
EPSS-0.08% / 25.02%
||
7 Day CHG~0.00%
Published-18 Sep, 2024 | 16:47
Updated-20 Sep, 2024 | 12:30
Rejected-Not Available
Known To Be Used In Ransomware Campaigns?-Not Available
KEV Added-Not Available
KEV Action Due Date-Not Available
ReDoS vulnerability in multiparametric routes in find-my-way

find-my-way is a fast, open source HTTP router, internally using a Radix Tree (aka compact Prefix Tree), supports route params, wildcards, and it's framework independent. A bad regular expression is generated any time one has two parameters within a single segment, when adding a `-` at the end, like `/:a-:b-`. This may cause a denial of service in some instances. Users are advised to update to find-my-way v8.2.2 or v9.0.1. or subsequent versions. There are no known workarounds for this issue.

Action-Not Available
Vendor-delvedor
Product-find-my-way
CWE ID-CWE-1333
Inefficient Regular Expression Complexity
CVE-2021-23354
Matching Score-4
Assigner-Snyk
ShareView Details
Matching Score-4
Assigner-Snyk
CVSS Score-5.3||MEDIUM
EPSS-0.40% / 59.82%
||
7 Day CHG~0.00%
Published-12 Mar, 2021 | 15:10
Updated-17 Sep, 2024 | 03:32
Rejected-Not Available
Known To Be Used In Ransomware Campaigns?-Not Available
KEV Added-Not Available
KEV Action Due Date-Not Available
Regular Expression Denial of Service (ReDoS)

The package printf before 0.6.1 are vulnerable to Regular Expression Denial of Service (ReDoS) via the regex string /\%(?:\(([\w_.]+)\)|([1-9]\d*)\$)?([0 +\-\]*)(\*|\d+)?(\.)?(\*|\d+)?[hlL]?([\%bscdeEfFgGioOuxX])/g in lib/printf.js. The vulnerable regular expression has cubic worst-case time complexity.

Action-Not Available
Vendor-adaltasn/a
Product-printfprintf
CWE ID-CWE-1333
Inefficient Regular Expression Complexity
CVE-2021-23382
Matching Score-4
Assigner-Snyk
ShareView Details
Matching Score-4
Assigner-Snyk
CVSS Score-5.3||MEDIUM
EPSS-0.07% / 22.13%
||
7 Day CHG~0.00%
Published-26 Apr, 2021 | 15:30
Updated-16 Sep, 2024 | 23:26
Rejected-Not Available
Known To Be Used In Ransomware Campaigns?-Not Available
KEV Added-Not Available
KEV Action Due Date-Not Available
Regular Expression Denial of Service (ReDoS)

The package postcss before 8.2.13 are vulnerable to Regular Expression Denial of Service (ReDoS) via getAnnotationURL() and loadAnnotation() in lib/previous-map.js. The vulnerable regexes are caused mainly by the sub-pattern \/\*\s* sourceMappingURL=(.*).

Action-Not Available
Vendor-postcssn/a
Product-postcsspostcss
CWE ID-CWE-1333
Inefficient Regular Expression Complexity
  • Previous
  • 1
  • 2
  • Next
Details not found