CVE-2021-23355Ps-kill Project Ps-kill
Critical 9.8 No auth needed
Follow: this CVE · Ps-kill Project · Ps-kill Project Ps-kill We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.2% probability of exploitation in 30 days · percentile 68
- Auth required
- No
- Published
- Mar 15, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-78
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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(){});
What to do
- Apply the vendor's security update for Ps-kill.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | ps-kill |
≤ 1.0.0 |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-7qmm-q394-fmch). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| ps-kill_project | ps-kill | all |
Official sources
References
Links published by the sources. Open them with care.
- snyk.io Exploit Third Party Advisory