{"id":"CVE-2021-23359","aliases":["CVE-2021-23359","GHSA-2548-q746-x5x6"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary Command Injection","summary":"This affects all versions of package port-killer. If (attacker-controlled) user input is given, it is possible for an attacker to execute arbitrary commands. This is due to use of the child_process exec function without input sanitization. Running this PoC will cause the command touch success to be executed, leading to the creation of a file called success.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"This affects all versions of package port-killer. If (attacker-controlled) user input is given, it is possible for an attacker to execute arbitrary commands. This is due to use of the child_process exec function without input sanitization. Running this PoC will cause the command touch success to be executed, leading to the creation of a file called success.","source":"cvelist"},{"lang":"es","text":"Esto afecta a todas las versiones del paquete port-killer.&#xa0;Si es proporcionada una entrada del usuario (controlada por el atacante), es posible para un atacante ejecutar comandos arbitrarios.&#xa0;Esto es debido al uso de la función exec child_process sin saneamiento de entrada.&#xa0;Una ejecución de esta PoC causará que sea ejecutado el comando touch success, conllevando a la creación de un archivo llamado success","source":"nvd"}],"published":"2021-03-18T12:40:15.690Z","modified":"2026-06-17T03:38:37.253Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-20","CWE-77","CWE-78"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"unspecified","status":"affected"}],"product":"port-killer","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"1.0.1"}],"ecosystem":"npm","package":"port-killer","purl":"pkg:npm/port-killer","source":"ghsa"},{"ranges":[],"vendor":"port-killer_project","product":"port-killer","cpe":"cpe:2.3:a:port-killer_project:port-killer:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-PORTKILLER-1078533","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/tylerjpeterson/port-killer/blob/1ca3a99ad80cc9ed5498d12b185189c10329025b/index.js%23L19","tags":["broken-link","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23359","tags":["advisory"],"sources":["ghsa"]}],"credits":["OmniTaint"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-23359","url":"https://www.cve.org/CVERecord?id=CVE-2021-23359","licence":"CVE Terms of Use","modified":"2024-09-17T03:18:03.737Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2548-q746-x5x6","url":"https://github.com/advisories/GHSA-2548-q746-x5x6","licence":"CC-BY-4.0","modified":"2023-11-08T04:05:05.126Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-23359","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23359","licence":"Public domain","modified":"2026-06-17T03:38:37.253Z"}],"updatedAt":"2026-11-25T22:58:00.319Z","epss":{"score":0.01654,"percentile":0.77279,"date":"2026-12-01T12:00:22.000Z"}}