{
  "id": "CVE-2026-48798",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-48798",
  "published_at": "2026-08-18T14:57:05.059Z",
  "title": "SSH.NET: ScpClient Recursive Download Allows Arbitrary File Write via Server-Controlled SCP Filenames",
  "vendor": "sshnet",
  "product": "SSH.NET",
  "cvss": {
    "score": 7.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-22",
  "cvss_by_source": {
    "cna": 7.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "sshnet",
        "product": "SSH.NET",
        "ranges": [
          "\u003c 2026.0.0"
        ],
        "fixed_in": [
          "2026.0.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade SSH.NET to 2026.0.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/sshnet/SSH.NET/security/advisories/GHSA-q939-rpr3-3284"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/sshnet/SSH.NET/commit/600be0de543765995a189b5d7cd4efac5007f3ce"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/sshnet/SSH.NET/releases/tag/2026.0.0"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
