Arbitrary Command Execution Affecting windows-cpu package, versions *


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
4.24% (91st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDnpm:windows-cpu:20170417
  • published19 May 2017
  • disclosed19 May 2017
  • creditDaniel Bond

Introduced: 19 May 2017

CVE-2017-1000219  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

There is no fix version for windows-cpu.

Overview

windows-cpu is a CPU monitoring utility for windows.

Affected versions of this package are vulnerable to Arbitrary Command Execution via the findLoad method, which passes a user-inputed string to the shell without validation.

Proof of Concept: This code will open the built-in calculator program.

var win = require('windows-cpu');
wind.findLoad('foo & calc.exe');

References

CVSS Base Scores

version 3.1