Описание
Versions of the package pacote from 11.2.7 and before 21.5.1 are vulnerable to Denial of Service (DoS) via the addGitSha function. An attacker can exploit this vulnerability by supplying a specially crafted spec.rawSpec value that triggers the function’s regex replacement and string-manipulation logic, causing excessive CPU consumption and potentially stalling or crashing the process.
A flaw was found in the pacote component. A remote attacker can exploit this denial of service (DoS) vulnerability by providing a specially crafted input to the addGitSha function. This malicious input triggers excessive CPU consumption due to regex replacement and string manipulation, which can lead to the process stalling or crashing.
Отчет
A flaw was found in the pacote npm package. Pacote retrieves package metadata and archives from npm registries, Git repositories, and other sources. In affected versions, the addGitSha function strips Git committish information from a package specification using a regular expression that is vulnerable to inefficient backtracking. An attacker who can supply a crafted spec.rawSpec value can cause the Node.js process that calls pacote to consume excessive CPU and become unresponsive, resulting in denial of service. Red Hat products that include pacote versions from 11.2.7 up to (but not including) 21.5.1 may be affected when Node.js workloads process package specifications through pacote or through npm operations that depend on pacote. The impact is limited to the Node.js process performing that work; host operating systems are not directly affected.
Меры по смягчению последствий
To mitigate this limit the length of incoming package specifiers (spec.rawSpec) before they reach the resolution service. Enforce hard CPU time limits or timeouts on isolated build jobs and package resolution processes.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Exploit Intelligence | exploit-intelligence-tech-preview/vulnerability-analysis-rhel9 | Will not fix | ||
| Exploit Intelligence | exploit-intelligence/vulnerability-analysis-rhel9 | Affected | ||
| Migration Toolkit for Applications 8 | mta/mta-cli-rhel9 | Not affected | ||
| Migration Toolkit for Applications 8 | mta/mta-generic-external-provider-rhel9 | Not affected | ||
| Red Hat 3scale API Management Platform 2 | 3scale-amp2/toolbox-rhel9 | Not affected | ||
| Red Hat Ceph Storage 4 | rhceph/rhceph-4-dashboard-rhel8 | Fix deferred | ||
| Red Hat Connectivity Link 1 | rhcl-1/rhcl-console-plugin-rhel9 | Not affected | ||
| Red Hat Enterprise Linux 10 | grafana | Not affected | ||
| Red Hat Enterprise Linux 10 | nodejs24 | Will not fix | ||
| Red Hat Enterprise Linux 10 | nodejs26 | Will not fix |
Показывать по
Ссылки на источники
Дополнительная информация
Статус:
EPSS
7.5 High
CVSS3
Связанные уязвимости
Versions of the package pacote from 11.2.7 and before 21.5.1 are vulnerable to Denial of Service (DoS) via the addGitSha function. An attacker can exploit this vulnerability by supplying a specially crafted spec.rawSpec value that triggers the function’s regex replacement and string-manipulation logic, causing excessive CPU consumption and potentially stalling or crashing the process.
Versions of the package pacote from 11.2.7 and before 21.5.1 are vulnerable to Denial of Service (DoS) via the addGitSha function. An attacker can exploit this vulnerability by supplying a specially crafted spec.rawSpec value that triggers the function’s regex replacement and string-manipulation logic, causing excessive CPU consumption and potentially stalling or crashing the process.
Versions of the package pacote from 11.2.7 and before 21.5.1 are vulne ...
pacote is vulnerable to Denial of Service (DoS) via the addGitSha function
EPSS
7.5 High
CVSS3