# CVE-2021-23360: Arbitrary Command Injection

- Severity: High 7.5 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H/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): 2.34%, higher than 84% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-03-21T15:45:15.917Z
- Modified: 2026-07-08T06:49:34.573Z
- Also known as: GHSA-fc42-h7q4-qp8h, SNYK-JS-KILLPORT-1078535
- Weaknesses: CWE-77, CWE-78
- Assigned by: snyk

## Description

This affects the package killport before 1.0.2. 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.

(As written by CVE List.)

## Affected

- killport: from unspecified before 1.0.2
- killport (npm): before 1.0.2
- killport_project killport: before 1.0.2

## Every score

- snyk: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- 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-KILLPORT-1078535> (exploit, patch, third-party-advisory, web)
- <https://github.com/ssnau/killport/blob/5268f23ea8f152e47182b263d8f7ef20c12a9f28/index.js%23L9> (broken-link, web)
- <https://github.com/ssnau/killport/commit/bec8e371f170a12e11cd222ffc7a6e1ae9942638> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23360> (advisory)

## Sources

- CVE List: [CVE-2021-23360](https://www.cve.org/CVERecord?id=CVE-2021-23360), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-fc42-h7q4-qp8h](https://github.com/advisories/GHSA-fc42-h7q4-qp8h), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-23360](https://nvd.nist.gov/vuln/detail/CVE-2021-23360), Public domain, modified 2026-06-17

---

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