UBUNTU-CVE-2024-4067

Source
https://ubuntu.com/security/CVE-2024-4067
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-4067.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2024-4067
Related
Published
2024-05-14T15:42:00Z
Modified
2024-10-15T14:15:25Z
Summary
[none]
Details

The NPM package micromatch 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.

References

Affected packages

Ubuntu:Pro:18.04:LTS / node-micromatch

Package

Name
node-micromatch
Purl
pkg:deb/ubuntu/node-micromatch?arch=src?distro=esm-apps/bionic

Affected ranges

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

Affected versions

2.*

2.3.11-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:20.04:LTS / node-micromatch

Package

Name
node-micromatch
Purl
pkg:deb/ubuntu/node-micromatch?arch=src?distro=focal

Affected ranges

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

Affected versions

2.*

2.3.11-1

4.*

4.0.2+repack-2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:22.04:LTS / node-micromatch

Package

Name
node-micromatch
Purl
pkg:deb/ubuntu/node-micromatch?arch=src?distro=jammy

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

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.10 / node-micromatch

Package

Name
node-micromatch
Purl
pkg:deb/ubuntu/node-micromatch?arch=src?distro=oracular

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

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.04:LTS / node-micromatch

Package

Name
node-micromatch
Purl
pkg:deb/ubuntu/node-micromatch?arch=src?distro=noble

Affected ranges

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

Affected versions

4.*

4.0.5+~4.0.2-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}