9.8 High
CVSS3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
7.5 High
CVSS2
Access Vector
NETWORK
Access Complexity
LOW
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
AV:N/AC:L/Au:N/C:P/I:P/A:P
0.002 Low
EPSS
Percentile
52.6%
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.
OS | Version | Architecture | Package | Version | Filename |
---|---|---|---|---|---|
ubuntu | 18.04 | noarch | node-shell-quote | < any | UNKNOWN |
github.com/substack/node-shell-quote/blob/master/CHANGELOG.md#173
github.com/substack/node-shell-quote/commit/5799416ed454aa4ec9afafc895b4e31760ea1abe
launchpad.net/bugs/cve/CVE-2021-42740
nvd.nist.gov/vuln/detail/CVE-2021-42740
security-tracker.debian.org/tracker/CVE-2021-42740
www.cve.org/CVERecord?id=CVE-2021-42740
www.npmjs.com/package/shell-quote
9.8 High
CVSS3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
7.5 High
CVSS2
Access Vector
NETWORK
Access Complexity
LOW
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
AV:N/AC:L/Au:N/C:P/I:P/A:P
0.002 Low
EPSS
Percentile
52.6%