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

exploitDog

github логотип

GHSA-hrpq-r399-whgw

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

Описание

Sandbox Breakout / Arbitrary Code Execution in safe-eval

All versions of safe-eval are vulnerable to Sandbox Escape leading to Remote Code Execution. The package fails to restrict access to the main context through Error objects. This may allow attackers to execute arbitrary code in the system.

Evaluating the payload

(function (){ var ex = new Error ex.__proto__ = null ex.stack = { match: x => { return x.constructor.constructor("throw process.env")() } } return ex })()

prints the contents of process.env.

Recommendation

No fix is currently available. Consider using an alternative package until a fix is made available.

Пакеты

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

safe-eval

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

<= 0.4.1

Отсутствует

EPSS

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

9.8 Critical

CVSS3

Дефекты

CWE-94

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

CVSS3: 8.1
nvd
больше 5 лет назад

This affects all versions of package safe-eval. It is possible for an attacker to run an arbitrary command on the host machine.

EPSS

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

9.8 Critical

CVSS3

Дефекты

CWE-94