{"id":"CVE-2021-23348","aliases":["EUVD-2021-0881","GHSA-vm67-7vmg-66vm","SNYK-JS-PORTPROCESSES-1078536"],"status":"published","title":"Arbitrary Command Injection","description":"This affects the package portprocesses before 1.0.5. If (attacker-controlled) user input is given to the killProcess 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.","severity":{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.0182,"percentile":0.78898,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-77","CWE-78"],"published":"2021-03-31T14:25:17Z","modified":"2026-10-20T10:54:32Z","fixes":[{"ecosystem":"npm","package":"portprocesses","fixed_in":["1.0.5"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"portprocesses","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.5"}]}]},{"source":"osv","ecosystem":"npm","package":"portprocesses","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.0.5"}]}]}],"products":[{"vendor":"portprocesses_project","product":"portprocesses"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-PORTPROCESSES-1078536","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://github.com/rrainn/PortProcesses/blob/fffceb09aff7180afbd0bd172e820404b33c8299/index.js%23L23","tags":["x_refsource_MISC","x_transferred","Broken Link","web"]},{"url":"https://github.com/rrainn/PortProcesses/security/advisories/GHSA-vm67-7vmg-66vm","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://github.com/rrainn/PortProcesses/commit/86811216c9b97b01b5722f879f8c88a7aa4214e1","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23348","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-vm67-7vmg-66vm"}],"sources":{"cve":[{"id":"CVE-2021-23348","title":"Arbitrary Command Injection","description":"This affects the package portprocesses before 1.0.5. If (attacker-controlled) user input is given to the killProcess 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.","status":"published","published":"2021-03-31T14:25:17.671Z","modified":"2024-09-16T20:52:54.111Z","cvss":[{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P","level":"medium","assessor":"cna"}],"updated_at":"2026-11-02T14:33:00.819444Z"}],"euvd":[{"id":"EUVD-2021-0881","description":"This affects the package portprocesses before 1.0.5. If (attacker-controlled) user input is given to the killProcess 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.","status":"published","published":"2021-03-31T14:25:17Z","modified":"2024-09-16T20:52:54Z","cvss":[{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P","level":"medium"}],"updated_at":"2026-11-03T00:55:10.024877Z"}],"ghsa":[{"id":"GHSA-vm67-7vmg-66vm","title":"Arbitrary Command Injection in portprocesses","description":"### Impact\n\nAn Arbitrary Command Injection vulnerability was reported in `portprocesses` impacting versions \u003c= 1.0.4.\n\n### Example (Proof of Concept)\n\nThe following example demonstrates the vulnerability and will run `touch success` therefore creating a file named `success`.\n\n```js\nconst portprocesses = require(\"portprocesses\");\n\nportprocesses.killProcess(\"$(touch success)\");\n```","status":"published","published":"2021-04-06T17:24:50Z","modified":"2023-02-01T05:05:14Z","cvss":[{"version":"3.1","score":6.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-77","CWE-78"],"updated_at":"2026-11-02T14:36:33.613868Z"}],"nvd":[{"id":"CVE-2021-23348","description":"This affects the package portprocesses before 1.0.5. If (attacker-controlled) user input is given to the killProcess 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.","status":"published","published":"2021-03-31T15:15:15.543Z","modified":"2026-06-17T03:38:36.1Z","cvss":[{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","level":"medium","assessor":"secondary"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.5,"vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:06:51.197859Z"}],"osv":[{"id":"CVE-2021-23348","description":"This affects the package portprocesses before 1.0.5. If (attacker-controlled) user input is given to the killProcess 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.","status":"published","published":"2021-03-31T15:15:15.543Z","modified":"2026-10-20T10:54:32.067255392Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:18.367807Z"},{"id":"GHSA-vm67-7vmg-66vm","title":"Arbitrary Command Injection in portprocesses","description":"### Impact\n\nAn Arbitrary Command Injection vulnerability was reported in `portprocesses` impacting versions \u003c= 1.0.4.\n\n### Example (Proof of Concept)\n\nThe following example demonstrates the vulnerability and will run `touch success` therefore creating a file named `success`.\n\n```js\nconst portprocesses = require(\"portprocesses\");\n\nportprocesses.killProcess(\"$(touch success)\");\n```","status":"published","published":"2021-04-06T17:24:50Z","modified":"2026-09-10T03:49:04.006677663Z","cvss":[{"version":"3.1","score":6.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-77","CWE-78"],"updated_at":"2026-11-02T15:46:57.348035Z"}]}}
