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 package | Versions | Reported by |
|---|---|---|
| port-killer | before unspecified | CVE List |
| port-killer (npm) | up to 1.0.1 | GitHub Advisory Database |
| port-killer_project port-killer | Not specified | NVD |
All scores
| snyk | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 6.5medium CVSS:2.0 | AV: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
| https://snyk.io/vuln/SNYK-JS-PORTKILLER-1078533 | exploit, third-party-advisory, web | |
| https://github.com/tylerjpeterson/port-killer/blob/1ca3a99ad80cc9ed5498d12b185189c10329025b/index.js%23L19 | broken-link, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-23359 | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-23359 changed 2024-09-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-2548-q746-x5x6 changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2021-23359 changed 2026-06-17 | Public domain |