Sshnet SSH.NET
SSH.NET: ScpClient Recursive Download Allows Arbitrary File Write via Server-Controlled SCP Filenames
SSH.NET is a Secure Shell (SSH) library for .NET. In 2025.1.0 and earlier, ScpClient.Download(string directoryName, DirectoryInfo directoryInfo) trusts file and directory names returned by a remote SCP server and combines them with the requested local directory without containment validation, allowing a malicious, compromised, or man-in-the-middle server to use ../ sequences or absolute paths to create or overwrite files anywhere writable by the client process. This issue is fixed in version 2026.0.0.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.1high · scored by CNA · CWE-22
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
sshnet SSH.NET
- < 2026.0.0
Fixed in 2026.0.0
Mitigation
Upgrade SSH.NET to 2026.0.0 or later.
References
- Vendor advisory github.com/sshnet/SSH.NET/security/advisories/…
- Patch github.com/sshnet/SSH.NET/commit/600be0de54376…
- Release notes github.com/sshnet/SSH.NET/releases/tag/2026.0.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.