{"id":"CVE-2026-48798","published":"2026-08-18T14:57:05Z","modified":"2026-08-18T15:28:45Z","title":"SSH.NET: ScpClient Recursive Download Allows Arbitrary File Write via Server-Controlled SCP Filenames","vendor":"sshnet","product":"SSH.NET","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00421,"percentile":0.373,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-73","name":"External Control of File Name or Path"}],"references":[{"url":"https://github.com/sshnet/SSH.NET/security/advisories/GHSA-q939-rpr3-3284","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sshnet/SSH.NET/commit/600be0de543765995a189b5d7cd4efac5007f3ce","tags":["x_refsource_MISC"]},{"url":"https://github.com/sshnet/SSH.NET/releases/tag/2026.0.0","tags":["x_refsource_MISC"]}],"priority":{"score":12.4,"factors":[{"name":"EPSS percentile","points":7.46},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"sshnet","affectedVersions":[{"vendor":"sshnet","product":"SSH.NET","versions":["< 2026.0.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-18T15:28:39.653141Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"SSH.NET","vulnerableRanges":["<2026.0.0"],"patched":["2026.0.0"],"from":["GHSA-q939-rpr3-3284"],"provenance":"source"}],"summary":{"text":"SSH.NET, a Secure Shell library for .NET, has a flaw in its ScpClient.Download recursive method, which trusts file and directory names supplied by the remote SCP server and joins them to the requested local directory without containment checks. An attacker operating a malicious, compromised, or man-in-the-middle server can use ../ sequences or absolute paths to write or overwrite files anywhere the client process can write, and this requires the victim to initiate a download from that server.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:49:06Z"},"euvd":{"id":"EUVD-2026-60945","exploited":false,"provenance":"source"}}