{"id":"CVE-2021-23363","aliases":["CVE-2021-23363","GHSA-mm4f-47ch-f7hx","SNYK-JS-KILLBYPORT-1078531"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary Command Injection","summary":"This affects the package kill-by-port before 0.0.2. If (attacker-controlled) user input is given to the killByPort 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"This affects the package kill-by-port before 0.0.2. If (attacker-controlled) user input is given to the killByPort 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.","source":"cvelist"},{"lang":"es","text":"Esto afecta al paquete kill-by-port versiones anteriores a 0.0.2.&#xa0;Si se proporciona una entrada de usuario (controlada por el atacante) para la función killByPort, es posible que un atacante ejecute comandos arbitrarios.&#xa0;Esto se debe al uso de la función exec child_process sin saneamiento de entrada.","source":"nvd"}],"published":"2021-03-30T15:00:15.284Z","modified":"2026-09-10T03:49:03.753Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"},{"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-77","CWE-78"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"0.0.2","status":"affected"}],"product":"kill-by-port","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.2"}],"ecosystem":"npm","package":"kill-by-port","purl":"pkg:npm/kill-by-port","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.0.2"}],"vendor":"kill-by-port_project","product":"kill-by-port","cpe":"cpe:2.3:a:kill-by-port_project:kill-by-port:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-KILLBYPORT-1078531","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/GuyMograbi/kill-by-port/blob/16dcbe264b6b4a5ecf409661b42836dd286fd43f/index.js%23L8","tags":["broken-link","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/GuyMograbi/kill-by-port/commit/ea5b1f377e196a4492e05ff070eba8b30b7372c4","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23363","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/GuyMograbi/kill-by-port","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/GuyMograbi/kill-by-port/blob/16dcbe264b6b4a5ecf409661b42836dd286fd43f/index.js#23L8","tags":["web"],"sources":["ghsa"]}],"credits":["OmniTaint"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-23363","url":"https://www.cve.org/CVERecord?id=CVE-2021-23363","licence":"CVE Terms of Use","modified":"2024-09-17T01:56:52.764Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mm4f-47ch-f7hx","url":"https://github.com/advisories/GHSA-mm4f-47ch-f7hx","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:03.753Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-23363","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23363","licence":"Public domain","modified":"2026-06-17T03:38:37.630Z"}],"updatedAt":"2026-11-25T22:58:00.499Z","epss":{"score":0.01765,"percentile":0.78724,"date":"2026-12-01T12:00:22.000Z"}}