{"id":"CVE-2021-23363","published":"2021-03-30T15:00:15Z","modified":"2024-09-17T01:56:52Z","title":"Arbitrary Command Injection","vendor":null,"product":null,"tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01765,"percentile":0.78617,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-KILLBYPORT-1078531","tags":["x_refsource_MISC"]},{"url":"https://github.com/GuyMograbi/kill-by-port/blob/16dcbe264b6b4a5ecf409661b42836dd286fd43f/index.js%23L8","tags":["x_refsource_MISC"]},{"url":"https://github.com/GuyMograbi/kill-by-port/commit/ea5b1f377e196a4492e05ff070eba8b30b7372c4","tags":["x_refsource_MISC"]}],"priority":{"score":20.1,"factors":[{"name":"EPSS percentile","points":15.72},{"name":"CVSS severity","points":4.41}]},"affectedVersions":[{"vendor":"n/a","product":"kill-by-port","versions":[">= unspecified, < 0.0.2"]}],"affected":[{"ecosystem":"npm","package":"kill-by-port","vulnerableRanges":["<0.0.2"],"patched":["0.0.2"],"from":["GHSA-mm4f-47ch-f7hx"],"provenance":"source"}],"summary":{"text":"The kill-by-port npm package, versions before 0.0.2, contains a command injection flaw in its killByPort function, which passes input to the child_process exec function without sanitization. An attacker who can supply input to killByPort, which requires the application to pass attacker-controlled data to that function, can execute arbitrary commands, and the attack requires low privileges and no user interaction over the network.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:53Z"},"euvd":{"id":"EUVD-2021-0846","exploited":false,"provenance":"source"}}