Amenazas en vivo

Todas las CVE / Shell-quote Project

CVE-2021-42740Shell-quote Project Shell-quote

Crítica 9.8 Sin autenticación

Prioridad
74
CVSS 3.1
9.8
EPSS
4.1%
probabilidad de explotación en 30 días · percentil 92
Requiere autenticación
No
Publicada
21 oct 2021
Actualizada
17 jun 2026
Categoría
Aplicación · Multiplataforma
Debilidad (CWE)
CWE-77
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Qué pasa

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.

Texto original de NVD, en inglés. La traducción y el resumen en español llegan pronto.

Qué hacer

  1. Aplica la actualización de seguridad del fabricante para Shell-quote.
  2. Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.

Paquetes afectados

EcosistemaPaqueteVersiones afectadasCorregida enCómo actualizar
npm shell-quote ≥ 1.6.3 < 1.7.3 1.7.3 npm install shell-quote@1.7.3

Según OSV / GitHub Advisories (GHSA-g4rg-993r-mgx7). Verifica la versión en tu lockfile antes de actualizar.

Productos afectados (CPE)

FabricanteProductoVersiones
shell-quote_projectshell-quote< 1.7.3

Fuentes oficiales

Referencias

Enlaces publicados por las fuentes. Ábrelos con criterio.