Описание
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.
A flaw was found in the NPM package micromatch
where it is vulnerable to a regular expression denial of service (ReDoS). The issue occurs in micromatch.braces()
in index.js
because the pattern .*
will readily 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.
Меры по смягчению последствий
Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
Затронутые пакеты
Платформа | Пакет | Состояние | Рекомендация | Релиз |
---|---|---|---|---|
Cryostat 2 | micromatch | Affected | ||
Logging Subsystem for Red Hat OpenShift | openshift-logging/kibana6-rhel8 | Under investigation | ||
Logging Subsystem for Red Hat OpenShift | openshift-logging/logging-view-plugin-rhel9 | Under investigation | ||
Migration Toolkit for Applications 7 | mta/mta-cli-rhel9 | Under investigation | ||
Migration Toolkit for Applications 7 | mta/mta-ui-rhel9 | Under investigation | ||
Migration Toolkit for Containers | rhmtc/openshift-migration-ui-rhel8 | Under investigation | ||
Migration Toolkit for Runtimes | micromatch | Under investigation | ||
Migration Toolkit for Virtualization | migration-toolkit-virtualization/mtv-console-plugin-rhel9 | Under investigation | ||
Multicluster Engine for Kubernetes | multicluster-engine/console-mce-rhel8 | Not affected | ||
Network Observability Operator | network-observability/network-observability-console-plugin-rhel9 | Under investigation |
Показывать по
Ссылки на источники
Дополнительная информация
Статус:
EPSS
7.5 High
CVSS3
Связанные уязвимости
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.
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.
The NPM package `micromatch` prior to 4.0.8 is vulnerable to Regular E ...
Regular Expression Denial of Service (ReDoS) in micromatch
EPSS
7.5 High
CVSS3