Vulnérabilités / CVE-2021-42740

critique

CVE-2021-42740

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

Publiée Modifiée CWE 77
Dans la Trivy database depuis au moins le 24 oct. 2026, 07:11 UTCLa date d'entrée avant ce build n'est pas enregistrée.

Sévérité par source

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

Le label propre à Trivy est CRITICAL. Critique selon NVD, GHSA. Plus basse selon Ubuntu (moyenne).

Description

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.

Paquets affectés et versions corrigées

SourcePaquetCorrigé en
npm::GitHub Security Advisory npmshell-quote1.7.3
chainguardjitsucom-jitsu, py3-captum0 et 1 autres
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-quotepas de correctif indiqué
wolfijitsucom-jitsu0
Afficher les 9 entrées de 8 sources
SourcePaquetCorrigé en
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-quotepas de correctif indiqué
wolfijitsucom-jitsu0

Références

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.