CVE-2021-23355 MEDIUM

CVE-2021-23355: Arbitrary Command Injection

Vendor N/A
Product ps-kill
Published March 15, 2021
Last update September 16, 2024

CVSS base score

5.6/10
Attack vector Network
Attack complexity High
Privileges required None
User interaction None
Confidentiality Low
Integrity Low

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P

What the vulnerability does

01Description

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

Key dates

02Disclosure timeline

March 15, 2021 CVE published
September 16, 2024 Record updated