high7.5
CVE-2020-26301
OS Command Injection in ssh2
Impact
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
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | ssh2 | < 1.4.0 | 1.4.0 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Ssh2 Project | Ssh2 | before 1.4.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/mscdex/ssh2/commit/f763271f41320e71d5cbee02ea5bc6a2ded3ca21
- https://securitylab.github.com/advisories/GHSL-2020-123-mscdex-ssh2/
- https://www.npmjs.com/package/ssh2
- https://github.com/advisories/GHSA-652h-xwhf-q4h6
- https://nvd.nist.gov/vuln/detail/CVE-2020-26301