Vulnerability · Published Mar 18, 2021 · Assigned by snyk
CVE-2021-23359Arbitrary Command Injection
High 7.5
In plain English
A high-severity security flaw in port-killer. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.7% (higher than 77% of all known vulnerabilities).
Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.7%top 23.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
This affects all versions of package port-killer. 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | port-killer | no fix listed | GHSA-2548-q746-x5x6 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | port-killer | 0 – before unspecified |