CVE-2021-23355 – ps-kill
Package
Manager: npm
Name: ps-kill
Vulnerable Version: >=0 <=1.0.0
Severity
Level: Critical
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS: 0.01432 pctl0.79929
Details
Command Injection in ps-kill 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): ```js var ps_kill = require('ps-kill'); ps_kill.kill('$(touch success)', function() {}); ```
Metadata
Created: 2021-03-19T21:19:29Z
Modified: 2023-09-05T23:01:21Z
Source: MANUAL
CWE IDs: ["CWE-77"]
Alternative ID: GHSA-7qmm-q394-fmch
Finding: F422
Auto approve: 1