CVE-2021-23359
JSON

7.5high

Arbitrary Command Injection

Severity
7.5high CVSS:3.1 by snyk
Exploit likelihood
1.65% (higher than 77% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-2548-q746-x5x6

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

Product or packageVersionsReported by
port-killerbefore unspecifiedCVE List
port-killer (npm)up to 1.0.1GitHub Advisory Database
port-killer_project port-killerNot specifiedNVD

All scores

snyk7.5high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD6.5medium CVSS:2.0AV:N/AC:L/Au:S/C:P/I:P/A:P

Classification

What each source says

CVE List

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.

NVD (es)

Esto afecta a todas las versiones del paquete port-killer. Si es proporcionada una entrada del usuario (controlada por el atacante), es posible para un atacante ejecutar comandos arbitrarios. Esto es debido al uso de la función exec child_process sin saneamiento de entrada. Una ejecución de esta PoC causará que sea ejecutado el comando touch success, conllevando a la creación de un archivo llamado success

References

Sources

SourceRecordLicence
CVE ListCVE-2021-23359 changed 2024-09-17CVE Terms of Use
GitHub Advisory DatabaseGHSA-2548-q746-x5x6 changed 2023-11-08CC-BY-4.0
NVDCVE-2021-23359 changed 2026-06-17Public domain