{"id":"CVE-2026-48798","summary":"SSH.NET: ScpClient Recursive Download Allows Arbitrary File Write via Server-Controlled SCP Filenames","details":"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.","aliases":["GHSA-q939-rpr3-3284"],"modified":"2026-10-28T02:30:23.545438774Z","published":"2026-08-18T14:57:05.059Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-22","CWE-73"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/48xxx/CVE-2026-48798.json"},"references":[{"type":"WEB","url":"https://github.com/sshnet/SSH.NET/releases/tag/2026.0.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/48xxx/CVE-2026-48798.json"},{"type":"ADVISORY","url":"https://github.com/sshnet/SSH.NET/security/advisories/GHSA-q939-rpr3-3284"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48798"},{"type":"FIX","url":"https://github.com/sshnet/SSH.NET/commit/600be0de543765995a189b5d7cd4efac5007f3ce"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/sshnet/ssh.net","events":[{"introduced":"0"},{"fixed":"7b2fd3dbf2c86a80a7b06cea020aa5f821c9902e"},{"fixed":"600be0de543765995a189b5d7cd4efac5007f3ce"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"0"},{"fixed":"2026.0.0"}]},{"range":[{"fixed":"600be0de543765995a189b5d7cd4efac5007f3ce"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_TAG","original_tag":"2026.0.0","range":[{"fixed":"7b2fd3dbf2c86a80a7b06cea020aa5f821c9902e"}]}]}}],"versions":["2025.1.0","2025.0.0","2024.2.0","2024.1.0","2024.0.0","2023.0.1","2023.0.0","2016.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-48798.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L"}]}