Critical severityNVD Advisory· Published Mar 15, 2021· Updated Sep 16, 2024
Arbitrary Command Injection
CVE-2021-23355
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(){});
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
ps-killnpm | <= 1.0.0 | — |
Affected products
2- ps-kill/ps-killdescription
Patches
Vulnerability mechanics
References
3- github.com/advisories/GHSA-7qmm-q394-fmchghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-23355ghsaADVISORY
- snyk.io/vuln/SNYK-JS-PSKILL-1078529ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.