{"id":"CVE-2026-85756","published":"2026-09-16T16:31:24Z","modified":"2026-09-16T18:34:33Z","title":"SSH.NET: ScpClient allows server-side RCE via default SCP path handling","vendor":"sshnet","product":"SSH.NET","tier":"tail","description":{"text":"SSH.NET is a Secure Shell (SSH) library for .NET. Prior to 2026.0.0, ScpClient places caller-supplied remote paths into the command used to run scp on the server, and the default RemotePathTransformation.DoubleQuote transformation cannot safely quote every remote command interpreter. When an application passes an attacker-controlled path to a shell-based server, shell metacharacters not neutralized by the active IRemotePathTransformation can execute commands as the authenticated SSH user. Exploitation requires a shell-based server and a path crafted for that shell's parsing rules; non-shell servers and paths fully neutralized by the selected transformation are not affected. RemotePathTransformation.ShellQuote is available for POSIX shells, while SftpClient avoids a remote shell entirely. This issue is fixed in version 2026.0.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00617,"percentile":0.505,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/sshnet/SSH.NET/security/advisories/GHSA-mggc-4xg6-vcxf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sshnet/SSH.NET/commit/c66b9f8fb06c12e71761e58a577b1e796026310f","tags":["x_refsource_MISC"]},{"url":"https://github.com/sshnet/SSH.NET/releases/tag/2026.0.0","tags":["x_refsource_MISC"]}],"priority":{"score":15.3,"factors":[{"name":"EPSS percentile","points":10.1},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"sshnet","affectedVersions":[{"vendor":"sshnet","product":"SSH.NET","versions":["< 2026.0.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-09-16T18:21:23.551674Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"SSH.NET","vulnerableRanges":["<2026.0.0"],"patched":["2026.0.0"],"from":["GHSA-mggc-4xg6-vcxf"],"provenance":"source"}],"summary":{"text":"SSH.NET, a .NET Secure Shell library, has an OS command injection flaw in ScpClient, which places caller-supplied remote paths into the scp command run on the server, and its default DoubleQuote path transformation cannot safely quote every remote shell. An attacker who can get an application to pass a crafted path to a shell-based SSH server can run commands as the authenticated SSH user, but only when the application uses a shell-based server and the path is not fully neutralized by the selected transformation; non-shell servers are unaffected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:29:35Z"},"euvd":{"id":"EUVD-2026-80878","exploited":false,"provenance":"source"}}