RCE in Ps-Kill Project

CVE-2021-23355

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(){});

Vulnerability class: Command Injection (OS Command Injection)

EPSS: 0.012 (65.0th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 5.6 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2021-23355?
CVE-2021-23355 is a medium-severity vulnerability in Ps-Kill Project, classified under OS Command Injection. CVSS score: 5.6/10. Published 2021-03-15.
How severe is CVE-2021-23355?
Medium severity. CVSS v3 base score is 5.6 out of 10.