Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWY4ZmgtOHJnbS0yMjdo
OS Command Injection in node-prompt-here
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.
JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWY4ZmgtOHJnbS0yMjdo
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: over 2 years ago
Updated: 3 months ago
CVSS Score: 9.8
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Identifiers: GHSA-f8fh-8rgm-227h, CVE-2020-7602
References:
- https://nvd.nist.gov/vuln/detail/CVE-2020-7602
- https://snyk.io/vuln/SNYK-JS-NODEPROMPTHERE-560115
- https://github.com/advisories/GHSA-f8fh-8rgm-227h
Affected Packages
npm:node-prompt-here
Versions: <= 1.0.1No known fixed version