CVE-2021-23348
Arbitrary Command Injection
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
6.3
Arbitrary Command Injection
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.
- Record
CVE-2021-23348- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P - Updated
- 2026-11-02
EUVDEUVD-2021-0881
6.3
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.
- Record
EUVD-2021-0881- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-vm67-7vmg-66vm
6.4
Arbitrary Command Injection in portprocesses
Impact
An Arbitrary Command Injection vulnerability was reported in portprocesses impacting versions <= 1.0.4.
Example (Proof of Concept)
The following example demonstrates the vulnerability and will run touch success therefore creating a file named success.
const portprocesses = require("portprocesses");
portprocesses.killProcess("$(touch success)");
- Record
GHSA-vm67-7vmg-66vm- CVSS 3.1
- 6.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N - Weakness
- CWE-77, CWE-78
- Updated
- 2026-11-02
NVD
6.3
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.
- Record
CVE-2021-23348- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L - CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 6.5 Medium
AV:N/AC:L/Au:S/C:P/I:P/A:P - Weakness
- CWE-78
- Updated
- 2026-11-02
OSV
8.8
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.
- Record
CVE-2021-23348- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVGHSA-vm67-7vmg-66vm
6.4
Arbitrary Command Injection in portprocesses
Impact
An Arbitrary Command Injection vulnerability was reported in portprocesses impacting versions <= 1.0.4.
Example (Proof of Concept)
The following example demonstrates the vulnerability and will run touch success therefore creating a file named success.
const portprocesses = require("portprocesses");
portprocesses.killProcess("$(touch success)");
- Record
GHSA-vm67-7vmg-66vm- CVSS 3.1
- 6.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N - Weakness
- CWE-77, CWE-78
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
portprocessesnpm |
before 1.0.5 | 1.0.5 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases, published | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-23348 is a medium vulnerability (CVSS 6.3) in Portprocesses Project Portprocesses, published March 31, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.82%, the 78th percentile. Fixed in portprocesses 1.0.5.
References
snyk.io/vuln/SNYK-JS-PORTPROCESSES-1078536
github.com/rrainn/PortProcesses/blob/fffceb09aff7180afbd0bd172e820404b33c8299/index.js%23L23
github.com/rrainn/PortProcesses/security/advisories/GHSA-vm67-7vmg-66vm
github.com/rrainn/PortProcesses/commit/86811216c9b97b01b5722f879f8c88a7aa4214e1
nvd.nist.gov/vuln/detail/CVE-2021-23348
github.com/advisories/GHSA-vm67-7vmg-66vm