Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-95rp-6gqp-6622

Опубликовано: 30 авг. 2023
Источник: github
Github: Прошло ревью
CVSS3: 9.8

Описание

Command Injection Vulnerability in find-exec

Older versions of the package are vulnerable to Command Injection as an attacker controlled parameter. As a result, attackers may run malicious commands.

For example:

const find = require("find-exec"); find("mplayer; touch hacked")

This creates a file named "hacked" on the filesystem.

You should never allow users to control commands to find, since this package attempts to run every command provided.

Thanks to @miguelafmonteiro for reporting.

Пакеты

Наименование

find-exec

npm
Затронутые версииВерсия исправления

< 1.0.3

1.0.3

EPSS

Процентиль: 91%
0.0684
Низкий

9.8 Critical

CVSS3

Дефекты

CWE-78

Связанные уязвимости

CVSS3: 9.8
nvd
больше 2 лет назад

find-exec is a utility to discover available shell commands. Versions prior to 1.0.3 did not properly escape user input and are vulnerable to Command Injection via an attacker controlled parameter. As a result, attackers may run malicious shell commands in the context of the running process. This issue has been addressed in version 1.0.3. users are advised to upgrade. Users unable to upgrade should ensure that all input passed to find-exec comes from a trusted source.

EPSS

Процентиль: 91%
0.0684
Низкий

9.8 Critical

CVSS3

Дефекты

CWE-78