node-prompt-here through 1.0.1 allows execution of arbitrary commands. The runCommand()
is called by getDevices()
function in file linux/manager.js
, which is required by the index. process.env.NM_CLI
in the file linux/manager.js
. This function is used to construct the argument of function execSync()
, which can be controlled by users without any sanitization.
{ "nvd_published_at": "2020-03-15T22:15:00Z", "cwe_ids": [ "CWE-78" ], "severity": "CRITICAL", "github_reviewed": true, "github_reviewed_at": "2021-05-03T21:44:33Z" }