# CVE-2020-26301: Command injection in mscdex/ssh2

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.83%, higher than 90% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-09-20T19:40:12.000Z
- Modified: 2026-06-17T03:08:01.990Z
- Also known as: GHSA-652h-xwhf-q4h6
- Weaknesses: CWE-78
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- mscdex ssh2: < 1.4.0
- ssh2 (npm): before 1.4.0
- ssh2_project ssh2: before 1.4.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:N`
- NVD: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://securitylab.github.com/advisories/GHSL-2020-123-mscdex-ssh2/> (exploit, patch, third-party-advisory)
- <https://github.com/mscdex/ssh2/commit/f763271f41320e71d5cbee02ea5bc6a2ded3ca21> (patch, third-party-advisory, web)
- <https://www.npmjs.com/package/ssh2> (product, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-26301> (advisory)
- <https://github.com/mscdex/ssh2> (package)
- <https://securitylab.github.com/advisories/GHSL-2020-123-mscdex-ssh2> (advisory)

## Sources

- CVE List: [CVE-2020-26301](https://www.cve.org/CVERecord?id=CVE-2020-26301), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-652h-xwhf-q4h6](https://github.com/advisories/GHSA-652h-xwhf-q4h6), CC-BY-4.0, modified 2024-02-12
- NVD: [CVE-2020-26301](https://nvd.nist.gov/vuln/detail/CVE-2020-26301), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-26301 · Whole record: https://cve.day/CVE-2020-26301.json · Rebuilt by cve.day 2026-11-25T22:57:58.397Z
