CVE-2021-23348
HIGH 8.8CVSS 3.1Arbitrary Command Injection in portprocesses
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.
- Published
- 31 Mar 2021
- Last modified
- 10 Sep 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-77CWE-78
- Also known as
- GHSA-vm67-7vmg-66vmSNYK-JS-PORTPROCESSES-1078536
- Sources
- NVDJSONOSV GHSA-vm67-7vmg-66vmJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | portprocesses_project | portprocessescpe:2.3:a:portprocesses_project:portprocesses:*:*:*:*:*:node.js:*:* |
< 1.0.5 | 1.0.5 |
| OSV | npm | portprocesses | < 1.0.5 | 1.0.5 |
References
- https://github.com/rrainn/PortProcesses/blob/fffceb09aff7180afbd0bd172e820404b33c8299/index.js%23L23 · Broken Link, WEB
- https://github.com/rrainn/PortProcesses/commit/86811216c9b97b01b5722f879f8c88a7aa4214e1 · Patch, Third Party Advisory, WEB
- https://github.com/rrainn/PortProcesses/security/advisories/GHSA-vm67-7vmg-66vm · Exploit, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-PORTPROCESSES-1078536 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-23348 · ADVISORY
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 31 Mar 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 6 Apr 2021)