{"id":"CVE-2021-23360","published":"2021-03-21T15:45:15Z","modified":"2024-09-17T02:41:42Z","title":"Arbitrary Command Injection","vendor":null,"product":null,"tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0234,"percentile":0.84019,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-KILLPORT-1078535","tags":["x_refsource_MISC"]},{"url":"https://github.com/ssnau/killport/blob/5268f23ea8f152e47182b263d8f7ef20c12a9f28/index.js%23L9","tags":["x_refsource_MISC"]},{"url":"https://github.com/ssnau/killport/commit/bec8e371f170a12e11cd222ffc7a6e1ae9942638","tags":["x_refsource_MISC"]}],"priority":{"score":22.1,"factors":[{"name":"EPSS percentile","points":16.8},{"name":"CVSS severity","points":5.25}]},"affectedVersions":[{"vendor":"n/a","product":"killport","versions":[">= unspecified, < 1.0.2"]}],"affected":[{"ecosystem":"npm","package":"killport","vulnerableRanges":["<1.0.2"],"patched":["1.0.2"],"from":["GHSA-fc42-h7q4-qp8h"],"provenance":"source"}],"summary":{"text":"The flaw is an arbitrary command injection in the killport package, affecting versions before 1.0.2, caused by passing user input to the child_process exec function without sanitization. An attacker who can supply input that reaches that call can run arbitrary operating system commands, and exploitation requires network-reachable access with low privileges and a higher-complexity attack condition.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:52:12Z"},"euvd":{"id":"EUVD-2021-0817","exploited":false,"provenance":"source"}}