GitHub Advisoryadvisory · npm
GHSA-63m4-fhf2-cmf7 Command Execution in windows-cpu
CRITICAL
Official page ↗
- Aliases
- CVE-2017-1000219
- Ecosystem
- npm
- Packages
- windows-cpu
- Severity
- Critical
- CVSS vector
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-78
- Reviewed
- 2020-08-31
Affected packages
• npm windows-cpu: < 0.1.5 → fixed in 0.1.5
Description
Version of `windows-cpu` before 0.1.5 will execute arbitrary code passed into the first argument of the `findLoad` method, resulting in remote code execution.
Proof of Concept
```js
var win = require('windows-cpu');
wind.findLoad('foo & calc.exe');
```
Recommendation
Update to version 0.1.5 or later.
Related
Alias · CVE (1)
- CVE-2017-1000219 npm/KyleRoss windows-cpu all versions vulnerable to command injection resulting in code execution as Node.js user vulnerability
Weakness · CWE (1)
- CWE-78 Improper Neutralization of Special Elements used in an OS Command weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-1000219 advisory
- https://github.com/KyleRoss/windows-cpu/commit/b75e19aa2f7459a9506bceb577ba2341fe273117 web
- https://github.com/KyleRoss/windows-cpu package
- https://github.com/KyleRoss/windows-cpu/blob/master/index.js#L81 web
- https://www.npmjs.com/advisories/336 web