Vulnerability · Published Mar 31, 2021 · Assigned by snyk
CVE-2021-23348Arbitrary Command Injection
Medium 6.3
In plain English
A medium-severity security flaw in portprocesses. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.8% (higher than 79% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)6.3Medium
Exploit odds (30 days)1.8%top 21.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | portprocesses | 1.0.5 | GHSA-vm67-7vmg-66vm |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | portprocesses | unspecified – before 1.0.5 |
References
- https://snyk.io/vuln/SNYK-JS-PORTPROCESSES-1078536 x_refsource_MISC
- https://github.com/rrainn/PortProcesses/blob/fffceb09aff7180afbd0bd172e820404b33c8299/index.js%23L23 x_refsource_MISC
- https://github.com/rrainn/PortProcesses/security/advisories/GHSA-vm67-7vmg-66vm x_refsource_MISC
- https://github.com/rrainn/PortProcesses/commit/86811216c9b97b01b5722f879f8c88a7aa4214e1 x_refsource_MISC