In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about External Control of File Name or Path vulnerabilities in an interactive lesson.
Start learningUpgrade SSH.NET to version 2026.0.0 or higher.
SSH.NET is a Secure Shell (SSH) library for .NET, optimized for parallelism and with broad framework support.
Affected versions of this package are vulnerable to External Control of File Name or Path via server-controlled SCP filenames through the recursive download path in ScpClient.Download(string, DirectoryInfo) in ScpClient.cs. An attacker can write or overwrite files outside the intended destination directory by serving a malicious SCP directory download with file or directory names containing ../, absolute paths, drive qualifiers, or platform-specific path separators. This can corrupt user files and, if sensitive paths are targeted, enable persistence, privilege escalation, or remote code execution on the client host.