CVE-2021-23355

Arbitrary Command Injection

State
Published
Severity
5.6 Medium
Published
Mar 15, 2021
Updated
Sep 16, 2024
Reserved
Jan 8, 2021

Read the record on cve.org

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

Scores

CVSSScoreVectorSource
3.15.6 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L/E:Psnyk

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
ps-killn/a
  • before unspecifiedAffected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.