{"id":"CVE-2021-23360","aliases":["CVE-2021-23360","GHSA-fc42-h7q4-qp8h","SNYK-JS-KILLPORT-1078535"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary Command Injection","summary":"This affects the package killport before 1.0.2. 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 the package killport before 1.0.2. 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 al paquete killport versiones anteriores a 1.0.2.&#xa0;Si es proporcionada una entrada de usuario (controlada por el atacante), 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 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-21T15:45:15.917Z","modified":"2026-07-08T06:49:34.573Z","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-77","CWE-78"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"1.0.2","status":"affected"}],"product":"killport","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.0.2"}],"ecosystem":"npm","package":"killport","purl":"pkg:npm/killport","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.0.2"}],"vendor":"killport_project","product":"killport","cpe":"cpe:2.3:a:killport_project:killport:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-KILLPORT-1078535","tags":["exploit","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ssnau/killport/blob/5268f23ea8f152e47182b263d8f7ef20c12a9f28/index.js%23L9","tags":["broken-link","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ssnau/killport/commit/bec8e371f170a12e11cd222ffc7a6e1ae9942638","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23360","tags":["advisory"],"sources":["ghsa"]}],"credits":["OmniTaint"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-23360","url":"https://www.cve.org/CVERecord?id=CVE-2021-23360","licence":"CVE Terms of Use","modified":"2024-09-17T02:41:42.500Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fc42-h7q4-qp8h","url":"https://github.com/advisories/GHSA-fc42-h7q4-qp8h","licence":"CC-BY-4.0","modified":"2026-07-08T06:49:34.573Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-23360","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23360","licence":"Public domain","modified":"2026-06-17T03:38:37.367Z"}],"updatedAt":"2026-11-25T22:58:00.353Z","epss":{"score":0.0234,"percentile":0.84076,"date":"2026-12-01T12:00:22.000Z"}}