CVE-2020-26301 Command injection in mscdex/ssh2
- Exploited in the wild
- Not known
- Fix
- Available
What is CVE-2020-26301?
CVE-2020-26301 is a high-severity vulnerability in mscdex ssh2, published on 20 Sep 2021.
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.
Weakness: CWE-78
Which versions are affected by CVE-2020-26301?
2 open source packages ship an affected version, including ssh2. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
ssh2 npm | All versions | 1.4.0 |
ssh2 npm | All versions | 1.4.0 |
Products include Ssh2 Project Ssh2.
How do I fix CVE-2020-26301?
Upgrade ssh2 to 1.4.0 or later.
Is CVE-2020-26301 being exploited?
There is no known exploitation of CVE-2020-26301 in the wild and no public exploit code.
Sources
Also known as GHSA-652h-xwhf-q4h6.