# CVE-2021-23363: Arbitrary Command Injection

- Severity: Medium 6.3 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.76%, higher than 78% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-03-30T15:00:15.284Z
- Modified: 2026-09-10T03:49:03.753Z
- Also known as: GHSA-mm4f-47ch-f7hx, SNYK-JS-KILLBYPORT-1078531
- Weaknesses: CWE-77, CWE-78
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- kill-by-port: from unspecified before 0.0.2
- kill-by-port (npm): before 0.0.2
- kill-by-port_project kill-by-port: before 0.0.2

## Every score

- snyk: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P`
- GitHub: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://snyk.io/vuln/SNYK-JS-KILLBYPORT-1078531> (exploit, third-party-advisory, web)
- <https://github.com/GuyMograbi/kill-by-port/blob/16dcbe264b6b4a5ecf409661b42836dd286fd43f/index.js%23L8> (broken-link)
- <https://github.com/GuyMograbi/kill-by-port/commit/ea5b1f377e196a4492e05ff070eba8b30b7372c4> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23363> (advisory)
- <https://github.com/GuyMograbi/kill-by-port> (package)
- <https://github.com/GuyMograbi/kill-by-port/blob/16dcbe264b6b4a5ecf409661b42836dd286fd43f/index.js#23L8> (web)

## Sources

- CVE List: [CVE-2021-23363](https://www.cve.org/CVERecord?id=CVE-2021-23363), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-mm4f-47ch-f7hx](https://github.com/advisories/GHSA-mm4f-47ch-f7hx), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2021-23363](https://nvd.nist.gov/vuln/detail/CVE-2021-23363), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-23363 · Whole record: https://cve.day/CVE-2021-23363.json · Rebuilt by cve.day 2026-11-25T22:58:00.499Z
