CVE-2020-26301 json
Command injection in mscdex/ssh2
published 2021-09-20 5 y ago modified 2026-06-17 4 mo ago also GHSA-652h-xwhf-q4h6 , EUVD-2021-1990
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.8%
- EPSS 3.8% chance of exploitation in 30 days, percentile 90%
- public exploits
- 0
- none known
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.
Patch / fix
- npm ssh2 1.4.0
- ssh2_project ssh2 1.4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2020-26301 updated cvss 5.4
nodejs-ssh2: Command injection by calling vulnerable method with untrusted input
-
Red Hat Openshift Data Foundation 4 noobaa-core-containeraffected: no fix available
-
Red Hat OpenShift Container Storage 4.8 on RHEL-8 ocs4/cephcsi-rhel8 v4.8.5-1, ocs4/mcg-core-rhel8 v4.8.5-1, ocs4/mcg-rhel8-operator v4.8.5-1, ocs4/ocs-rhel8-operator v4.8.5-1, ocs4/ocs-operator-bundle v4.8.5-2, ocs4/ocs-must-gather-rhel8 v4.8.5-1, +2 morefixed: vendor fix RHSA-2021:4845
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.83% chance of exploitation in the next 30 days, higher than 90% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- securitylab.github.com https://securitylab.github.com/advisories/GHSL-2020-123-mscdex-ssh2/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:N |
| NVD | 3.1 | 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | ssh2 | <1.4.0 |
1.4.0 |
Affected products
- mscdex ssh2
Classification
- Weakness
-
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
-
github.com
/mscdex/ssh2/commit/f763271f41320e71d5cbee02ea5bc6a2ded3ca21
web, patch, third-party-advisory
-
securitylab.github.com
/advisories/GHSL-2020-123-mscdex-ssh2/
exploit, patch, third-party-advisory
-
npmjs.com
/package/ssh2
web, product, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2020-26301
advisory
-
github.com
/mscdex/ssh2
package
-
securitylab.github.com
/advisories/GHSL-2020-123-mscdex-ssh2
advisory
Sources
- CVE List CVE-2020-26301
- GitHub Advisory GHSA-652h-xwhf-q4h6
- NVD CVE-2020-26301
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.