CVE-2026-48798sshnet SSH.NET
High 7.1 No auth needed
Follow: this CVE · sshnet · sshnet SSH.NET We alert you by email or Slack (account required).
- Priority
- 58
- CVSS 3.1
- 7.1
- EPSS
- —
- Auth required
- No
- Published
- Aug 18, 2026
- Updated
- Oct 22, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
What happens
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
- Apply the vendor's security update for SSH.NET.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| NuGet | SSH.NET |
< 2026.0.0 |
2026.0.0 |
dotnet add package SSH.NET --version 2026.0.0 |
Per OSV / GitHub Advisories (GHSA-q939-rpr3-3284). Check the version in your lockfile before upgrading.
Affected products
- sshnet · SSH.NET
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.