Advisory Database
  • Advisories
  • Dependency Scanning
  1. nuget
  2. ›
  3. SSH.NET
  4. ›
  5. CVE-2026-85756

CVE-2026-85756: SSH.NET: ScpClient allows server-side RCE via default SCP path handling

September 17, 2026

Default SCP remote-path handling places caller-supplied paths into the command that runs scp on the server. On a shell-based server that command is interpreted by a shell, so an attacker-influenced path that is not quoted to suit that shell can execute as a command as the authenticated SSH user. SSH.NET provides ScpClient.RemotePathTransformation to control escaping behaviour (defaulting to RemotePathTransformation.DoubleQuote) but cannot guarantee safety for arbitrary remote command interpreters. This is inherent to running scp over a remote shell (cf. CVE-2020-15778).

References

  • github.com/advisories/GHSA-mggc-4xg6-vcxf
  • github.com/sshnet/SSH.NET/commit/c66b9f8fb06c12e71761e58a577b1e796026310f
  • github.com/sshnet/SSH.NET/releases/tag/2026.0.0
  • github.com/sshnet/SSH.NET/security/advisories/GHSA-mggc-4xg6-vcxf
  • nvd.nist.gov/vuln/detail/CVE-2026-85756

Code Behaviors & Features

Detect and mitigate CVE-2026-85756 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2026.0.0

Fixed versions

  • 2026.0.0

Solution

Upgrade to version 2026.0.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

nuget/SSH.NET/CVE-2026-85756.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 22 Sep 2026 12:20:39 +0000.