SecurityContext

CVE-2026-85756: SSH.NET - Command Injection

  • Cve: CVE-2026-85756
  • Name: SSH.NET - Command Injection
  • Description: 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.
  • Impact: Authenticated SSH users can execute arbitrary commands on the server, potentially leading to full compromise of the user session.
  • Remediation: Update to version 2026.0.0 or later.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: logged_in
  • Requirements: Requires authenticated SSH user and shell-based server with crafted path for shell parsing
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00617
  • Epss percentile: 0.50505
  • Assignee: [email protected]
  • Published at: 2026-09-16T17:18:16Z
  • Age in days: 69
  • Modified at: 2026-09-30T17:51:36Z
  • Patch available: yes
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-85756
  • Nvd status: awaiting_analysis
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-78Improper Neutralization of Special Elements used in an OS Command

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://github.com/sshnet/SSH.NET/commit/c66b9f8fb06c12e71761e58a577b1e796026310f
https://github.com/sshnet/SSH.NET/releases/tag/2026.0.0
https://github.com/sshnet/SSH.NET/security/advisories/GHSA-mggc-4xg6-vcxf

Products

ProductAffectedPlatform boundSourcesUrl
ssh.net_project:ssh.net< 2026.0.0nocna_alias_text/v1/products/ssh.net_project/ssh.net

Projects

RepositoryLink kindsIndexedUrl
sshnet/SSH.NETcommit, fix, package, releases, security_advisoryyes/v1/repositories/sshnet/SSH.NET

Index

  • Repositories: 29
  • Repositories high signal: 25
  • Packages: 1

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts