GHSA-f8fh-8rgm-227h

Suggest an improvement
Source
https://github.com/advisories/GHSA-f8fh-8rgm-227h
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-f8fh-8rgm-227h/GHSA-f8fh-8rgm-227h.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-f8fh-8rgm-227h
Aliases
Published
2021-05-07T16:16:16Z
Modified
2025-01-14T08:57:07.935871Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
OS Command Injection in node-prompt-here
Details

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.

Database specific
{
    "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"
}
References

Affected packages

npm / node-prompt-here

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
1.0.1