CVE-2026-48798: SSH.NET · ScpClient Recursive Download Allows Arbitrary File Write via Server-Controlled SCP Filenames
Affects SSH.NETSource GCVE Database
Not known to be exploited · CVSS 7.1 High : upgrade to 2026.0.0 soon.
Data as of 11 Nov 2026, 23:24 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 36% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2026.0.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:LExploitation evidence
Disclosed: evidence found.
CVE published 18 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 11 Nov 2026.
What to do
Upgrade SSH.NET to 2026.0.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| NuGetSSH.NET | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in SSH.NET version 2026.0.0. Users should upgrade to this version or later to remediate the vulnerability. Until upgraded, avoid using the vulnerable ScpClient.Download method with untrusted SCP servers. Patch status is confirmed by the vendor advisory indicating the fix in version 2026.0.0.
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.
References
- github.com/sshnet/SSH.NET/security/advisories/GHSA-q939-rpr3-3284 (opens in a new tab)
- github.com/sshnet/SSH.NET/commit/600be0de543765995a189b5d7cd4efac5007f3ce (opens in a new tab)
- github.com/sshnet/SSH.NET (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-48798 (opens in a new tab)
- github.com/sshnet/SSH.NET/releases/tag/2026.0.0 (opens in a new tab)