Skip to content

Code injection in port-killer

High severity GitHub Reviewed Published Apr 13, 2021 to the GitHub Advisory Database • Updated Feb 1, 2023

Package

npm port-killer (npm)

Affected versions

<= 1.0.1

Patched versions

None

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.

References

Published by the National Vulnerability Database Mar 18, 2021
Reviewed Mar 22, 2021
Published to the GitHub Advisory Database Apr 13, 2021
Last updated Feb 1, 2023

Severity

High
7.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
High
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

CVE ID

CVE-2021-23359

GHSA ID

GHSA-2548-q746-x5x6

Source code

No known source code
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.