# CVE-2021-45459: Command Injection in node-windows

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- 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): 4.06%, higher than 91% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-12-22T05:26:49.000Z
- Modified: 2026-06-17T04:13:24.400Z
- Also known as: GHSA-53xv-c2hx-5w6q
- Weaknesses: CWE-77
- Assigned by: mitre

## Description

lib/cmd.js in the node-windows package before 1.0.0-beta.6 for Node.js allows command injection via the PID parameter.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- node-windows (npm): before 1.0.0-beta.6
- node-windows_project node-windows: up to 0.1.14; 1.0.0

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/dwisiswant0/advisory/issues/4> (exploit, issue-tracking, patch, third-party-advisory, web)
- <https://github.com/coreybutler/node-windows/compare/1.0.0-beta.5...1.0.0-beta.6> (patch, third-party-advisory, web)
- <https://security.netapp.com/advisory/ntap-20220107-0004/> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-45459> (advisory)
- <https://github.com/coreybutler/node-windows/commit/a379d31366edbd7a672a981e6c09e185ab448dd3> (web)
- <https://advisory.dw1.io/4> (web)
- <https://github.com/coreybutler/node-windows> (package)
- <https://security.netapp.com/advisory/ntap-20220107-0004> (web)

## Sources

- CVE List: [CVE-2021-45459](https://www.cve.org/CVERecord?id=CVE-2021-45459), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-53xv-c2hx-5w6q](https://github.com/advisories/GHSA-53xv-c2hx-5w6q), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-45459](https://nvd.nist.gov/vuln/detail/CVE-2021-45459), Public domain, modified 2026-06-17

---

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