<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>SSH.NET (&lt;= 2025.1.0) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/ssh.net--2025.1.0/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Wed, 12 Aug 2026 16:48:53 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/ssh.net--2025.1.0/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>Arbitrary File Write Vulnerability in SSH.NET ScpClient</title><link>https://feed.craftedsignal.io/briefs/2026-08-ssh-net-path-traversal/</link><pubDate>Wed, 12 Aug 2026 16:48:53 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-08-ssh-net-path-traversal/</guid><description>A path traversal vulnerability in the SSH.NET ScpClient allows a malicious SCP server to write or overwrite arbitrary files on a client machine during a recursive directory download.</description><content:encoded><![CDATA[<p>SSH.NET, a popular SSH library for .NET, contains a directory traversal vulnerability (CVE-2026-48798) in the <code>ScpClient</code> component. When performing a recursive download of a directory, the library fails to sanitize filenames returned by the remote SCP server. A malicious or compromised SCP server can provide filenames containing directory traversal sequences (such as <code>../</code>) or absolute paths.</p>
<p>If a client application uses <code>ScpClient.Download</code> to pull a directory from an untrusted or compromised server, the library will construct local file paths based on these unsanitized names. This allows the attacker to write files outside of the intended target directory, potentially overwriting sensitive files such as SSH authorized keys, user profile startup scripts (e.g., .bashrc, .profile), or application configuration files. This vulnerability effectively grants the attacker the ability to perform operations with the privileges of the user running the .NET application. The issue was addressed in the project's commit history, and users are advised to upgrade to the latest version to prevent malicious path traversal during SCP operations.</p>
<h2 id="impact">Impact</h2>
<p>The impact of this vulnerability is significant, as it enables arbitrary file write capabilities on the host running the application. Successful exploitation could lead to privilege escalation or remote code execution by overwriting critical system or user files (e.g., <code>~/.ssh/authorized_keys</code>, <code>~/.bashrc</code>, or cron jobs). The threat specifically targets environments where automated, recurring backups or data synchronization tasks are performed using SSH.NET against untrusted or potentially compromised remote infrastructure.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade the SSH.NET NuGet package to the latest version that includes the fix for CVE-2026-48798.</li>
<li>Audit all applications utilizing <code>SSH.NET</code> to determine if <code>ScpClient.Download</code> is used to sync data from external, non-hardened SCP servers.</li>
<li>Review application-level access controls for the user account executing the SSH.NET library to minimize the impact of a potential write primitive (adhere to principle of least privilege).</li>
<li>Monitor logs for unusual directory creation or file write events initiated by .NET applications performing network synchronization tasks.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>vulnerability</category><category>path-traversal</category><category>dotnet</category></item></channel></rss>