SecurityContext

CVE-2021-23363: kill-by-port - Command Injection

  • Cve: CVE-2021-23363
  • Name: kill-by-port - Command Injection
  • Description: This affects the package kill-by-port before 0.0.2. If (attacker-controlled) user input is given to the killByPort 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.
  • Impact: Attackers can execute arbitrary commands on the system, potentially leading to full system compromise.
  • Remediation: Update to version 0.0.2 or later, ensuring proper input sanitization in killByPort function.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.01765
  • Epss percentile: 0.78524
  • Assignee: [email protected]
  • Published at: 2021-03-30T15:15:15Z
  • Age in days: 2065
  • Modified at: 2026-06-17T03:38:37Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-23363
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-78Improper Neutralization of Special Elements used in an OS Command

Public exploits

UrlSourceAdded date
https://snyk.io/vuln/SNYK-JS-KILLBYPORT-1078531nvd2021-03-30

References

UrlSourceTags
https://github.com/GuyMograbi/kill-by-port/commit/ea5b1f377e196a4492e05ff070eba8b30b7372c4nvdPatch, Third Party Advisory
https://snyk.io/vuln/SNYK-JS-KILLBYPORT-1078531nvdExploit, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
kill-by-port_project:kill-by-port< 0.0.2nonvd/v1/products/kill-by-port_project/kill-by-port

Projects

RepositoryLink kindsIndexedUrl
GuyMograbi/kill-by-portcommit, fix, packageyes/v1/repositories/GuyMograbi/kill-by-port

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2021-03-30
  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts