Vulnerability · Published Mar 15, 2021 · Assigned by snyk

CVE-2021-23355Arbitrary Command Injection

Medium 5.6

In plain English

A medium-severity security flaw in ps-kill. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 68% of all known vulnerabilities).

Severity (CVSS 3.1)5.6Medium
Exploit odds (30 days)1.2%top 31.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmps-killno fix listedGHSA-7qmm-q394-fmch

Affected products (as reported)

VendorProductVersions
n/a ps-kill 0 – before unspecified

References