CVE-2021-42740

EUVD-2022-3886
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.
Command Injection
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
9.8 CRITICAL
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 89%
Affected Products (NVD)
VendorProductVersion
shell-quote_projectshell-quote
𝑥
< 1.7.3
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
node-shell-quote
bookworm
1.7.4+~1.7.1-1
fixed
sid
1.7.4+~1.7.1-1
fixed
trixie
1.7.4+~1.7.1-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
node-shell-quote
bionic
needed
focal
dne
hirsute
dne
impish
dne
jammy
not-affected
kinetic
not-affected
lunar
not-affected
mantic
not-affected
noble
not-affected
trusty
ignored
xenial
ignored