Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTdxbW0tcTM5NC1mbWNo

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):

var ps_kill = require('ps-kill');
ps_kill.kill('$(touch success)', function() {});
Permalink: https://github.com/advisories/GHSA-7qmm-q394-fmch
JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTdxbW0tcTM5NC1mbWNo
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: about 3 years ago
Updated: 8 months ago


CVSS Score: 9.8
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Identifiers: GHSA-7qmm-q394-fmch, CVE-2021-23355
References: Blast Radius: 0.0

Affected Packages

npm:ps-kill
Dependent packages: 1
Dependent repositories: 1
Downloads: 10 last month
Affected Version Ranges: <= 1.0.0
No known fixed version
All affected versions: 1.0.0