CVE-2020-26301

Command injection in mscdex/ssh2

CRITICAL
10
CVSS Score
Published: September 20, 2021 at 07:40 PM UTC
Updated: June 17, 2026 at 03:08 AM UTC
2 products affected across 2 vendorsSSH2SSH2· also runs on 1 platform

Using ssh2 by mscdex?

Get instant alerts when new vulnerabilities affect ssh2 - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
CRITICAL10
Exploit prediction
EPSS 4%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 1.4.0
Affected range stops below 1.4.0, so it looks safe — our inference, not a vendor statement
microsoft-windows (environment)
v < 1.4.0
Affected range stops below 1.4.0, so it looks safe — our inference, not a vendor statement

Runs on — not affected

The affected product only carries this flaw when running on these platforms. The platforms themselves are not vulnerable.

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (3)

x_refsource_CONFIRMExploitPatchThird Party Advisory
https://securitylab.github.com/advisories/GHSL-2020-123-mscdex-ssh2/
x_refsource_MISCProductThird Party Advisory
https://www.npmjs.com/package/ssh2

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
CHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-78

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card