CVE-2021-42740

Published on: 10/21/2021 12:00:00 AM UTC

Last Modified on: 10/28/2021 01:54:00 PM UTC

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

Certain versions of Shell-quote from Shell-quote Project contain the following vulnerability:

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.

  • CVE-2021-42740 has been assigned by URL Logo [email protected] to track the vulnerability - currently rated as CRITICAL severity.

CVSS3 Score: 9.8 - CRITICAL

Attack
Vector
Attack
Complexity
Privileges
Required
User
Interaction
NETWORK LOW NONE NONE
Scope Confidentiality
Impact
Integrity
Impact
Availability
Impact
UNCHANGED HIGH HIGH HIGH

CVSS2 Score: 7.5 - HIGH

Access
Vector
Access
Complexity
Authentication
NETWORK LOW NONE
Confidentiality
Impact
Integrity
Impact
Availability
Impact
PARTIAL PARTIAL PARTIAL

CVE References

Description Tags Link
fix for security issue with windows drive letter regex · substack/[email protected] · GitHub github.com
text/html
URL Logo CONFIRM github.com/substack/node-shell-quote/commit/5799416ed454aa4ec9afafc895b4e31760ea1abe
shell-quote - npm www.npmjs.com
text/html
URL Logo MISC www.npmjs.com/package/shell-quote
node-shell-quote/CHANGELOG.md at master · substack/node-shell-quote · GitHub github.com
text/html
URL Logo CONFIRM github.com/substack/node-shell-quote/blob/master/CHANGELOG.md#173

Known Affected Configurations (CPE V2.3)

Type Vendor Product Version Update Edition Language
ApplicationShell-quote ProjectShell-quoteAllAllAllAll
  • cpe:2.3:a:shell-quote_project:shell-quote:*:*:*:*:*:node.js:*:*:

Social Mentions

Source Title Posted (UTC)
Twitter Icon @CVEreport CVE-2021-42740 : The shell-quote package before 1.7.3 for Node.js allows command injection. An attacker can inject… twitter.com/i/web/status/1… 2021-10-21 15:04:48
Twitter Icon @Robo_Alerts Potentially Critical CVE Detected! CVE-2021-42740 Description: The shell-quote package before 1.7.3 for Node.js all… twitter.com/i/web/status/1… 2021-10-21 16:00:10
Twitter Icon @threatmeter CVE-2021-42740 The shell-quote package before 1.7.3 for Node.js allows command injection. An attacker can inject un… twitter.com/i/web/status/1… 2021-10-22 07:09:07
© CVE.report 2021 Twitter Nitter Twitter Viewer |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report