GitHub Advisoryadvisory · npm

GHSA-7qmm-q394-fmch Command Injection in ps-kill

CRITICAL Published 2021-03-19 Modified 2023-09-05 Official page ↗
Aliases
CVE-2021-23355
Ecosystem
npm
Packages
ps-kill
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-77
Reviewed
2021-03-16

Affected packages

• npm ps-kill: <= 1.0.0 (no fix yet)

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): ```js var ps_kill = require('ps-kill'); ps_kill.kill('$(touch success)', function() {}); ```

Related

Alias · CVE (1)

  • CVE-2021-23355 This affects all versions of package ps-kill. vulnerability

Weakness · CWE (1)

  • CWE-77 Improper Neutralization of Special Elements used in a Command weakness

References