{"id":"CVE-2020-26301","published":"2021-09-20T19:40:12Z","modified":"2024-08-04T15:56:04Z","title":"Command injection in mscdex/ssh2","vendor":"mscdex","product":"ssh2","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03832,"percentile":0.90351,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/mscdex/ssh2/commit/f763271f41320e71d5cbee02ea5bc6a2ded3ca21","tags":["x_refsource_MISC"]},{"url":"https://securitylab.github.com/advisories/GHSL-2020-123-mscdex-ssh2/","tags":["x_refsource_CONFIRM"]},{"url":"https://www.npmjs.com/package/ssh2","tags":["x_refsource_MISC"]}],"priority":{"score":23.3,"factors":[{"name":"EPSS percentile","points":18.07},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"mscdex","affectedVersions":[{"vendor":"mscdex","product":"ssh2","versions":["< 1.4.0"]}],"affected":[{"ecosystem":"npm","package":"ssh2","vulnerableRanges":["<1.4.0"],"patched":["1.4.0"],"from":["GHSA-652h-xwhf-q4h6"],"provenance":"source"}],"summary":{"text":"The flaw is a command injection vulnerability in the ssh2 module by mscdex, a pure JavaScript client and server library for node.js, affecting versions before 1.4.0 on Windows only. An attacker who can supply untrusted input to a vulnerable method in an application using the library may be able to achieve remote code execution, provided the application calls that method with such input.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:40:11Z"},"euvd":{"id":"EUVD-2021-1990","exploited":false,"provenance":"source"}}