{"id":"GHSA-7qmm-q394-fmch","summary":"Command Injection in ps-kill","details":"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. \n\nPoC (provided by reporter): \n```js\nvar ps_kill = require('ps-kill');\nps_kill.kill('$(touch success)', function() {});\n```","aliases":["CVE-2021-23355"],"modified":"2023-11-08T04:05:04.939274Z","published":"2021-03-19T21:19:29Z","database_specific":{"nvd_published_at":"2021-03-15T17:15:00Z","cwe_ids":["CWE-77"],"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2021-03-16T22:05:22Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23355"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-PSKILL-1078529"}],"affected":[{"package":{"name":"ps-kill","ecosystem":"npm","purl":"pkg:npm/ps-kill"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"1.0.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/03/GHSA-7qmm-q394-fmch/GHSA-7qmm-q394-fmch.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}