CVE-2021-23359
HIGH 8.8CVSS 3.1Code injection in port-killer
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.
- Published
- 18 Mar 2021
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-20CWE-77CWE-78
- Also known as
- GHSA-2548-q746-x5x6
- Sources
- NVDJSONOSV GHSA-2548-q746-x5x6JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | port-killer_project | port-killercpe:2.3:a:port-killer_project:port-killer:*:*:*:*:*:node.js:*:* |
all versions | |
| OSV | npm | port-killer | <= 1.0.1 |
References
- https://github.com/tylerjpeterson/port-killer/blob/1ca3a99ad80cc9ed5498d12b185189c10329025b/index.js%23L19 · Broken Link, WEB
- https://snyk.io/vuln/SNYK-JS-PORTKILLER-1078533 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-23359 · ADVISORY
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 18 Mar 2021)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 13 Apr 2021)