CVE-2021-42740
CVE-2021-42740
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 9.8 · Critical · EPSS 4.2% · Fix available
- Published
- Updated
Affected products and versions
n/a
- Versions
- n/a: Affected
No fix published
node-shell-quote Debian:12
- Affected ranges
- ECOSYSTEM: < 1.7.3+~1.7.1-1
Update to 1.7.3+~1.7.1-1
node-shell-quote Debian:13
- Affected ranges
- ECOSYSTEM: < 1.7.3+~1.7.1-1
Update to 1.7.3+~1.7.1-1
node-shell-quote Debian:14
- Affected ranges
- ECOSYSTEM: < 1.7.3+~1.7.1-1
Update to 1.7.3+~1.7.1-1
shell-quote npm
- Affected ranges
- SEMVER: ≥ 1.6.3, < 1.7.3
Update to 1.7.3
node-shell-quote Ubuntu:Pro:18.04:LTS
- Versions
- 1.6.1+20160617-git72fb5a8ce29b-1
- 1.6.1+20160617-git72fb5a8ce29b-1ubuntu0.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published