Vulnerability · Published Sep 20, 2021 · Assigned by GitHub_M
CVE-2020-26301Command injection in mscdex/ssh2
High 7.5
In plain English
A high-severity OS command injection in ssh2 from mscdex. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.8% (higher than 90% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
ssh2 is client and server modules written in pure JavaScript for node.js. In ssh2 before version 1.4.0 there is a command injection vulnerability. The issue only exists on Windows. This issue may lead to remote code execution if a client of the library calls the vulnerable method with untrusted input. This is fixed in version 1.4.0.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | ssh2 | 1.4.0 | GHSA-652h-xwhf-q4h6 |
Affected products (as reported)
Weakness: CWE-78 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:N
References
- https://github.com/mscdex/ssh2/commit/f763271f41320e71d5cbee02ea5bc6a2ded3ca21 x_refsource_MISC
- https://securitylab.github.com/advisories/GHSL-2020-123-mscdex-ssh2/ x_refsource_CONFIRM
- https://www.npmjs.com/package/ssh2 x_refsource_MISC