Schwachstellen / CVE-2021-42740

kritisch

CVE-2021-42740

The shell-quote package before 1.7.3 for Node.js allows command inject ...

Veröffentlicht Geändert CWE 77
In der Trivy Database seit spätestens 24. Okt. 2026, 07:11 UTCWann der Eintrag vor diesem Build hinzukam, ist nicht erfasst.

Einstufung nach Quelle

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivys eigenes Label ist CRITICAL. Kritisch laut NVD, GHSA. Niedriger laut Ubuntu (mittel).

Beschreibung

The shell-quote package before 1.7.3 for Node.js allows command injection. An attacker can inject unescaped shell metacharacters through a regex designed to support Windows drive letters. If the output of this package is passed to a real shell as a quoted argument to a command with exec(), an attacker can inject arbitrary commands. This is because the Windows drive letter regex character class is {A-z] instead of the correct {A-Za-z]. Several shell metacharacters exist in the space between capital letter Z and lower case letter a, such as the backtick character.

Betroffene Pakete und behobene Versionen

QuellePaketBehoben in
npm::GitHub Security Advisory npmshell-quote1.7.3
chainguardjitsucom-jitsu, py3-captum0 und 1 weitere
debian 12node-shell-quote1.7.3+~1.7.1-1
debian 13node-shell-quote1.7.3+~1.7.1-1
debian 14node-shell-quote1.7.3+~1.7.1-1
echonode-shell-quote1.7.3+~1.7.1-1
ubuntu 18.04-ESMnode-shell-quotekein Fix angegeben
wolfijitsucom-jitsu0
Alle 9 Einträge aus 8 Quellen zeigen
QuellePaketBehoben in
npm::GitHub Security Advisory npmshell-quote1.7.3
chainguardjitsucom-jitsu0
chainguardpy3-captum0.9.0-r1
debian 12node-shell-quote1.7.3+~1.7.1-1
debian 13node-shell-quote1.7.3+~1.7.1-1
debian 14node-shell-quote1.7.3+~1.7.1-1
echonode-shell-quote1.7.3+~1.7.1-1
ubuntu 18.04-ESMnode-shell-quotekein Fix angegeben
wolfijitsucom-jitsu0

Referenzen

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.