{"id":"CVE-2021-23355","aliases":["CVE-2021-23355","GHSA-7qmm-q394-fmch"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary Command Injection","summary":"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(){});","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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(){});","source":"cvelist"},{"lang":"en","text":"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```","format":"markdown","source":"ghsa"},{"lang":"es","text":"Esto afecta a todas las versiones del paquete ps-kill.&#xa0;Si se otorga una entrada del usuario (controlada por el atacante) a la función kill, es posible que un atacante ejecute comandos arbitrarios.&#xa0;Esto es debido al uso de la función exec child_process sin un saneamiento de la entrada en el archivo index.js.&#xa0;PoC (proporcionada por el reportero): var ps_kill = require('ps-kill'); ps_kill.kill('$(touch success)',function(){});","source":"nvd"}],"published":"2021-03-15T16:40:22.069Z","modified":"2026-06-17T03:38:36.700Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P","score":5.6,"rating":"MEDIUM"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P","score":5.6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-77","CWE-78"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"unspecified","status":"affected"}],"product":"ps-kill","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"1.0.0"}],"ecosystem":"npm","package":"ps-kill","purl":"pkg:npm/ps-kill","source":"ghsa"},{"ranges":[],"vendor":"ps-kill_project","product":"ps-kill","cpe":"cpe:2.3:a:ps-kill_project:ps-kill:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-PSKILL-1078529","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23355","tags":["advisory"],"sources":["ghsa"]}],"credits":["OmniTaint"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-23355","url":"https://www.cve.org/CVERecord?id=CVE-2021-23355","licence":"CVE Terms of Use","modified":"2024-09-16T17:54:07.343Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7qmm-q394-fmch","url":"https://github.com/advisories/GHSA-7qmm-q394-fmch","licence":"CC-BY-4.0","modified":"2023-11-08T04:05:04.939Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-23355","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23355","licence":"Public domain","modified":"2026-06-17T03:38:36.700Z"}],"updatedAt":"2026-11-25T22:58:00.292Z","epss":{"score":0.01201,"percentile":0.69059,"date":"2026-12-01T12:00:22.000Z"}}