CVE-2021-23355 Arbitrary Command Injection
CriticalCVSS 9.8
EPSS 1.2%
- Published
- Updated
- Exploit status
- No public exploit known
Description
This affects all versions of package ps-kill. If (attacker-controlled) user input is given to the kill function, it is possible for an attacker to execute arbitrary commands. This is due to use of the child_process exec function without input sanitization in the index.js file. PoC (provided by reporter): var ps_kill = require('ps-kill'); ps_kill.kill('$(touch success)',function(){});
Upgrade path
2 packages: 1 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ps-kill project ps-kill | All versions | No fix listed | No fix yet |
| npm ps-kill(npm) | <= 1.0.0 | after 1.0.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm ps-kill(npm) | <= 1.0.0 | No fix listed |
| ps-kill project ps-kill | All versions | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- snyk.io exploit third-party-advisory
- github.com