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

exploitDog

nvd логотип

CVE-2021-21353

Опубликовано: 03 мар. 2021
Источник: nvd
CVSS3: 6.8
CVSS3: 9
CVSS2: 6.8
EPSS Низкий

Описание

Pug is an npm package which is a high-performance template engine. In pug before version 3.0.1, if a remote attacker was able to control the pretty option of the pug compiler, e.g. if you spread a user provided object such as the query parameters of a request into the pug template inputs, it was possible for them to achieve remote code execution on the node.js backend. This is fixed in version 3.0.1. This advisory applies to multiple pug packages including "pug", "pug-code-gen". pug-code-gen has a backported fix at version 2.0.3. This advisory is not exploitable if there is no way for un-trusted input to be passed to pug as the pretty option, e.g. if you compile templates in advance before applying user input to them, you do not need to upgrade.

Уязвимые конфигурации

Конфигурация 1

Одно из

cpe:2.3:a:pugjs:pug:*:*:*:*:*:node.js:*:*
Версия до 3.0.1 (исключая)
cpe:2.3:a:pugjs:pug-code-gen:*:*:*:*:*:node.js:*:*
Версия до 2.0.3 (исключая)
cpe:2.3:a:pugjs:pug-code-gen:*:*:*:*:*:node.js:*:*
Версия от 3.0.0 (включая) до 3.0.2 (исключая)

EPSS

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

6.8 Medium

CVSS3

9 Critical

CVSS3

6.8 Medium

CVSS2

Дефекты

CWE-74
CWE-94

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

CVSS3: 9
redhat
почти 5 лет назад

Pug is an npm package which is a high-performance template engine. In pug before version 3.0.1, if a remote attacker was able to control the `pretty` option of the pug compiler, e.g. if you spread a user provided object such as the query parameters of a request into the pug template inputs, it was possible for them to achieve remote code execution on the node.js backend. This is fixed in version 3.0.1. This advisory applies to multiple pug packages including "pug", "pug-code-gen". pug-code-gen has a backported fix at version 2.0.3. This advisory is not exploitable if there is no way for un-trusted input to be passed to pug as the `pretty` option, e.g. if you compile templates in advance before applying user input to them, you do not need to upgrade.

CVSS3: 6.8
github
почти 5 лет назад

Remote code execution via the `pretty` option.

CVSS3: 9
fstec
почти 5 лет назад

Уязвимость функций VisitMixin и visitMixinBlock препроцессора HTML Pug, позволяющая нарушителю выполнить произвольный код

EPSS

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

6.8 Medium

CVSS3

9 Critical

CVSS3

6.8 Medium

CVSS2

Дефекты

CWE-74
CWE-94