CVE-2024-4067

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-4067
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-4067.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-4067
Aliases
Related
Published
2024-05-14T15:42:47Z
Modified
2024-10-08T04:19:55.066449Z
Summary
[none]
Details

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.

References

Affected packages

Debian:11 / node-micromatch

Package

Name
node-micromatch
Purl
pkg:deb/debian/node-micromatch?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

4.*

4.0.2+repack+~4.0.1-1
4.0.4+~4.0.2-1
4.0.5+~4.0.2-1
4.0.7+~4.0.7-1
4.0.7+~4.0.9-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / node-micromatch

Package

Name
node-micromatch
Purl
pkg:deb/debian/node-micromatch?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

4.*

4.0.5+~4.0.2-1
4.0.7+~4.0.7-1
4.0.7+~4.0.9-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / node-micromatch

Package

Name
node-micromatch
Purl
pkg:deb/debian/node-micromatch?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.0.7+~4.0.7-1

Affected versions

4.*

4.0.5+~4.0.2-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Git / github.com/micromatch/micromatch

Affected ranges

Type
GIT
Repo
https://github.com/micromatch/micromatch
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*

0.2.0
0.2.2

1.*

1.0.0
1.0.1
1.2.0
1.3.0
1.3.1
1.3.2
1.3.3
1.4.1
1.4.2
1.4.3
1.4.4
1.4.5
1.5.0

2.*

2.0.0
2.1.0
2.1.1
2.1.3
2.1.4
2.1.5
2.1.6
2.2.0
2.3.0
2.3.1
2.3.10
2.3.11
2.3.2
2.3.3
2.3.4
2.3.5
2.3.6
2.3.7
2.3.8

3.*

3.0.0
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
3.1.0
3.1.1
3.1.10
3.1.2
3.1.3
3.1.4
3.1.5
3.1.6
3.1.7
3.1.8

4.*

4.0.1
4.0.2
4.0.3
4.0.4
4.0.5
4.0.7