CVE-2021-23355

MEDIUM

ps-kill - OS Command Injection via Unsanitized Input to kill Function

Title source: llm
STIX 2.1

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

References (1)

Core 1
Core References
Exploit, Third Party Advisory x_refsource_misc
https://snyk.io/vuln/SNYK-JS-PSKILL-1078529

Scores

CVSS v3 5.6
EPSS 0.0120
EPSS Percentile 64.4%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L

Details

CWE
CWE-78
Status published
Products (2)
npm/ps-kill 0npm
ps-kill_project/ps-kill
Published Mar 15, 2021
Tracked Since Feb 18, 2026