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.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)3.8%top 9.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
npmssh21.4.0GHSA-652h-xwhf-q4h6

Affected products (as reported)

VendorProductVersions
mscdex ssh2 < 1.4.0

Weakness: CWE-78 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:N

References