CVE-2026-48798
SSH.NET is a Secure Shell (SSH) library for .NET. In 2025.1.0 and …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/sshnet/SSH.NET/security/advisories/GHSA-q939-rpr3-3284
- github.com/sshnet/SSH.NET/commit/600be0de543765995a189b5d7cd4efac5007f3ce
- github.com/advisories/GHSA-q939-rpr3-3284
- github.com/sshnet/SSH.NET/releases/tag/2026.0.0
- nvd.nist.gov/vuln/detail/CVE-2026-48798
- nvd.nist.gov/vuln/detail/CVE-2026-48798
- cve.org/CVERecord?id=CVE-2026-48798
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.