PT-2020-19648

CVE-2020-7602

·

Published

2020-03-15

·

Updated

2021-07-21

Description by

CVSS 3.1
9.8
Critical
MetricsAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions node-prompt-here versions 1.0.0 through 1.0.1
Description The issue allows execution of arbitrary commands. The runCommand() function is called by the getDevices() function in the file linux/manager.js, which is required by the index.js process using process.env.NM CLI. This function constructs the argument for the execSync() function, which can be controlled by users without any sanitization.
Recommendations For node-prompt-here versions 1.0.0 through 1.0.1, consider disabling the runCommand() function until a patch is available to prevent the execution of arbitrary commands. Restrict access to the execSync() function to minimize the risk of exploitation. Avoid using the process.env.NM CLI variable in the affected index.js file until the issue is resolved.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-F8FH-8RGM-227H
SNYK-JS-NODEPROMPTHERE-560115
Found an issue in the description? Have something to add? Feel free to write us 👾