← Übersicht Nicht im beobachteten Stack

Remote code execution in pug

CVE-2021-21353 · DHI-h7sd-czag-mlsp-li3n · GHSA-p493-635q-r6gr

Kritisch · CVSS 9.0 Red Hat: Moderate Netzwerk · ohne Login Kein Fix bekannt

Veröffentlicht
28.02.2021
Zuletzt geändert
19.11.2026
EPSS (30 Tage)
4.3 %
CVSS-Vektor
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

Beschreibung

Originaltext der Quelle, nicht übersetzt.

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.

Status beim Hersteller

Red Hat stuft seine Produktlinien ein: 1 betroffen.

Logging Subsystem for Red Hat OpenShift BetroffenFix ausstehend openshift-logging/kibana6-rhel8
Weitere betroffene Pakete (13)
CVEpugjs/pugkein Fix bekanntCVE-2021-21353
Docker Hardened Images:Alpine:3.23gitlab-workhorsekein Fix bekanntDHI-h7sd-czag-mlsp-li3n
Docker Hardened Images:Alpine:3.23gitlab-workhorse-fipskein Fix bekanntDHI-h7sd-czag-mlsp-li3n
Docker Hardened Images:Alpine:3.24gitlab-rails-18kein Fix bekanntDHI-h7sd-czag-mlsp-li3n
Docker Hardened Images:Alpine:3.24gitlab-rails-19kein Fix bekanntDHI-h7sd-czag-mlsp-li3n
Docker Hardened Images:Debian:13gitlab-rails-18kein Fix bekanntDHI-h7sd-czag-mlsp-li3n
Docker Hardened Images:Debian:13gitlab-rails-19kein Fix bekanntDHI-h7sd-czag-mlsp-li3n
NVDpugjs:pug3.0.1CVE-2021-21353
NVDpugjs:pug-code-gen2.0.3, 3.0.0 → 3.0.2CVE-2021-21353
TuxCare:npmpug2.0.4-tuxcare.0 → 2.0.4-tuxcare.4CLSA-2026-1777250300
npmpug3.0.1GHSA-p493-635q-r6gr
npmpug-code-gen3.0.0 → 3.0.2GHSA-p493-635q-r6gr
npmpug-code-gen2.0.3GHSA-p493-635q-r6gr

Empfohlene Prüfung

  1. Feststellen, ob und in welcher Version die betroffenen Pakete in Ihren Systemen, Images und Abhängigkeiten vorkommen.
  2. Wo eine Fix-Version genannt ist: aktualisieren. Wo nicht: Hersteller-Advisory und Referenzen auf Workarounds prüfen.
  3. Erreichbarkeit beachten: Der Angriffsweg (Netzwerk · ohne Login) ist aus dem CVSS-Vektor abgeleitet.

Diese Seite sagt nichts darüber, ob Ihre Systeme betroffen sind. Das klärt erst eine Prüfung Ihrer Versionen.