7.5high
Command injection in mscdex/ssh2
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 3.83% (higher than 90% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-652h-xwhf-q4h6
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
| Product or package | Versions | Reported by |
|---|---|---|
| mscdex ssh2 | < 1.4.0 | CVE List |
| ssh2 (npm) | before 1.4.0 | GitHub Advisory Database |
| ssh2_project ssh2 | before 1.4.0 | NVD |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:N |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:N |
| NVD | 10.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
NVD (es)
ssh2 es un módulo cliente y servidor escrito en JavaScript puro para node.js. En ssh2 versiones anteriores a 1.4.0, se presenta una vulnerabilidad de inyección de comandos. El problema sólo se presenta en Windows. Este problema puede conllevar una ejecución de código remota si un cliente de la biblioteca llama al método vulnerable con una entrada no fiable. Esto es corregido en la versión 1.4.0
References
| https://github.com/mscdex/ssh2/commit/f763271f41320e71d5cbee02ea5bc6a2ded3ca21 | patch, third-party-advisory, web | |
| https://securitylab.github.com/advisories/GHSL-2020-123-mscdex-ssh2/ | exploit, patch, third-party-advisory | |
| 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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-26301 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-652h-xwhf-q4h6 changed 2024-02-12 | CC-BY-4.0 |
| NVD | CVE-2020-26301 changed 2026-06-17 | Public domain |