Todas las CVE / Shell-quote Project
CVE-2021-42740Shell-quote Project Shell-quote
Crítica 9.8 Sin autenticación
Seguir: esta CVE · Shell-quote Project · Shell-quote Project Shell-quote Te avisamos por email o Slack (requiere cuenta).
- 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.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Shell-quote.
- Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Có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)
| Fabricante | Producto | Versiones |
|---|---|---|
| shell-quote_project | shell-quote | < 1.7.3 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Third Party Advisory
- github.com Patch Third Party Advisory
- www.npmjs.com Vendor Advisory