CVE-2026-48798 SSH.NET: ScpClient Recursive Download Allows Arbitrary File Write via Server-Controlled SCP Filenames
HighCVSS 7.1
EPSS 0.42%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| nuget SSH.NET(NuGet) | < 2026.0.0; <= 2025.1.0; = 2011.7.29; = 2011.9.28 +30 more | 2026.0.0 | Fixed |
| sshnet SSH.NET | = < 2026.0.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| sshnet SSH.NET | = < 2026.0.0 | No fix listed |
| nuget SSH.NET(NuGet) | < 2026.0.0 | 2026.0.0 |
| nuget SSH.NET(NuGet) | = 2011.12.7 | No fix listed |
| nuget SSH.NET(NuGet) | = 2011.7.29 | No fix listed |
| nuget SSH.NET(NuGet) | = 2011.9.28 | No fix listed |
| nuget SSH.NET(NuGet) | = 2012.12.3 | No fix listed |
| nuget SSH.NET(NuGet) | = 2012.20.12 | No fix listed |
| nuget SSH.NET(NuGet) | = 2012.21.12 | No fix listed |
| nuget SSH.NET(NuGet) | = 2012.3.9 | No fix listed |
| nuget SSH.NET(NuGet) | = 2013.1.27 | No fix listed |
| nuget SSH.NET(NuGet) | = 2013.1.8 | No fix listed |
| nuget SSH.NET(NuGet) | = 2013.4.7 | No fix listed |
| nuget SSH.NET(NuGet) | = 2014.4.6-beta1 | No fix listed |
| nuget SSH.NET(NuGet) | = 2014.4.6-beta2 | No fix listed |
| nuget SSH.NET(NuGet) | = 2016.0.0 | No fix listed |
| nuget SSH.NET(NuGet) | = 2016.0.0-beta1 | No fix listed |
| nuget SSH.NET(NuGet) | = 2016.0.0-beta2 | No fix listed |
| nuget SSH.NET(NuGet) | = 2016.0.0-beta3 | No fix listed |
| nuget SSH.NET(NuGet) | = 2016.1.0 | No fix listed |
| nuget SSH.NET(NuGet) | = 2016.1.0-beta1 | No fix listed |
| nuget SSH.NET(NuGet) | = 2016.1.0-beta2 | No fix listed |
| nuget SSH.NET(NuGet) | = 2016.1.0-beta3 | No fix listed |
| nuget SSH.NET(NuGet) | = 2016.1.0-beta4 | No fix listed |
| nuget SSH.NET(NuGet) | = 2020.0.0 | No fix listed |
| nuget SSH.NET(NuGet) | = 2020.0.0-beta1 | No fix listed |
Show 10 more
| Product | Affected versions | Fixed in |
|---|---|---|
| nuget SSH.NET(NuGet) | = 2020.0.1 | No fix listed |
| nuget SSH.NET(NuGet) | = 2020.0.2 | No fix listed |
| nuget SSH.NET(NuGet) | = 2023.0.0 | No fix listed |
| nuget SSH.NET(NuGet) | = 2023.0.1 | No fix listed |
| nuget SSH.NET(NuGet) | = 2024.0.0 | No fix listed |
| nuget SSH.NET(NuGet) | = 2024.1.0 | No fix listed |
| nuget SSH.NET(NuGet) | = 2024.2.0 | No fix listed |
| nuget SSH.NET(NuGet) | = 2025.0.0 | No fix listed |
| nuget SSH.NET(NuGet) | = 2025.1.0 | No fix listed |
| nuget SSH.NET(NuGet) | <= 2025.1.0 | No fix listed |
References
- https://github.com/sshnet/SSH.NET/security/advisories/GHSA-q939-rpr3-3284 vendor-advisory
- https://github.com/sshnet/SSH.NET/commit/600be0de543765995a189b5d7cd4efac5007f3ce patch
- https://github.com/sshnet/SSH.NET/releases/tag/2026.0.0
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- github.com
- ENISA EUVD EUVD-2026-60945 third-party-advisory