Command injection in mscdex/ssh2
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 1 fixed, 1 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-78.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| mscdex | ssh2 | before 1.4.0 | 1.4.0 | Patch available | CNA |
| — | ssh2 (npm) | before 1.4.0 | 1.4.0 | Patch available | GHSA-652h-xwhf-q4h6 |
- ssh2 Vendormscdex Affected before 1.4.0 Fixed in 1.4.0 Patch available CNA
- ssh2 (npm) Vendor— Affected before 1.4.0 Fixed in 1.4.0 Patch available GHSA-652h-xwhf-q4h6
CPE configurations NVD · 2
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:ssh2_project:ssh2:*:*:*:*:*:node.js:*:* | before 1.4.0 | Vulnerable | Ssh2 Project |
| cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Microsoft |
- cpe:2.3:a:ssh2_project:ssh2:*:*:*:*:*:node.js:*:* Versions before 1.4.0 Vulnerable ·Ssh2 Project
- cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Microsoft
Remediation
- Fix · CNA ssh2 (mscdex) Fixed in 1.4.0
- Fix · GHSA-652h-xwhf-q4h6 ssh2 (npm) Fixed in 1.4.0 Advisory →
Red Hat 1 advisory
- RHSA-2021:4845 Released 2021-11-29 · Red Hat rating ModerateRed Hat OpenShift Container Storage 4.8.5 Security and Bug Fix Update
- Red Hat OpenShift Container Storage 4.8 on RHEL-8 ocs4/cephcsi-rhel8, ocs4/mcg-core-rhel8, ocs4/mcg-rhel8-operator +5
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Openshift Data Foundation 4 | Affected | No fix yet |
| Red Hat OpenShift Container Storage 4.8 on RHEL-8 | Fixed | RHSA-2021:4845 |
Timeline
- 2026-10-02 Threatist record created from CVE-2020-26301
- 2026-10-03 Alias added: GHSA-652h-xwhf-q4h6
- 2026-10-21 EPSS moved to the 90th–95th percentile
References
Advisory 3
More mscdex vulnerabilities
- TI-2025-42995 An issue pertaining to CWE-1333: Inefficient Regular Expression Complexity (4.19) was discovered in mscdex ssh2 v1.17.0. CVSS 3.1HIGH 7.5
Sources
- CVE-2020-26301 · CVE Program
- CVE-2020-26301 · NVD
- FIRST EPSS
- GHSA-652h-xwhf-q4h6 · GitHub Advisory Database · CC BY 4.0
- CVE-2020-26301 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences