SCA: security update for shell-quote (GHSA-g4rg-993r-mgx7)

critical Tenable Self-Hosted Container Security Plugin ID 414870

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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)

See Also

https://github.com/advisories/GHSA-g4rg-993r-mgx7

Plugin Details

Severity: Critical

ID: 414870

Version: Revision 1.6

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.12

Vendor

Vendor Severity: Critical

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2021-42740

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

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

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 5/24/2022

Vulnerability Publication Date: 10/21/2021

Reference Information

CVE: CVE-2021-42740

cwe: CWE-77