Advisory Database
  • Advisories
  • Dependency Scanning
  1. nuget
  2. ›
  3. SSH.NET
  4. ›
  5. CVE-2026-48798

CVE-2026-48798: SSH.NET: ScpClient Recursive Download Allows Arbitrary File Write via Server-Controlled SCP Filenames

August 12, 2026

ScpClient.Download(string directoryName, DirectoryInfo directoryInfo) writes files and directories using names returned by the remote SCP server during recursive downloads, with no validation that the resulting path stays inside the requested local directory. A malicious, compromised, or man-in-the-middle SCP server can return names containing ../ sequences (or absolute paths), causing the client to create directories and write/overwrite files anywhere the client process has access. This is similar to OpenSSH CVE-2019-6111, but with directory traversal capability.

References

  • github.com/advisories/GHSA-q939-rpr3-3284
  • github.com/sshnet/SSH.NET/commit/600be0de543765995a189b5d7cd4efac5007f3ce
  • github.com/sshnet/SSH.NET/security/advisories/GHSA-q939-rpr3-3284
  • nvd.nist.gov/vuln/detail/CVE-2026-48798

Code Behaviors & Features

Detect and mitigate CVE-2026-48798 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2026.0.0

Fixed versions

  • 2026.0.0

Solution

Upgrade to version 2026.0.0 or above.

Impact 7.1 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-73: External Control of File Name or Path

Source file

nuget/SSH.NET/CVE-2026-48798.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 13 Aug 2026 12:23:28 +0000.