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.
Metrics
CVSS 3.1 10.0/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| mscdex | ssh2 | < 1.4.0 |
References
- https://github.com/mscdex/ssh2/commit/f763271f41320e71d5cbee02ea5bc6a2ded3ca21Patch, Third Party Advisory
- https://securitylab.github.com/advisories/GHSL-2020-123-mscdex-ssh2/Exploit, Patch, Third Party Advisory
- https://www.npmjs.com/package/ssh2Product, Third Party Advisory
- https://github.com/mscdex/ssh2/commit/f763271f41320e71d5cbee02ea5bc6a2ded3ca21Patch, Third Party Advisory
- https://securitylab.github.com/advisories/GHSL-2020-123-mscdex-ssh2/Exploit, Patch, Third Party Advisory
- https://www.npmjs.com/package/ssh2Product, Third Party Advisory
Timeline
- Published
- Sep 20, 2021
- Last modified
- Jun 17, 2026
- NVD status
- Modified