همهٔ گزارش‌ها
بحرانی

sshfs: SSHFS Symlink Escape: Rogue SFTP Server → Local File Read/Write

متن اصلی

نسخه‌های متأثر

نسخه‌های متأثر
نامشخص
نسخهٔ اصلاح‌شده
اعلام نشده

بهره‌برداری

CVE-2026-47187

احتمال بهره‌برداری در ۳۰ روز آینده: 0.50%

FIRST EPSS · ۱۴۰۵/۰۸/۲۹

شرح آسیب‌پذیری

SSHFS is a network filesystem client for connecting to SSH servers. Prior to version 3.7.6, a rogue SFTP server can return absolute symlink targets or relative targets containing parent-directory components that SSHFS passes through FUSE for resolution by the client kernel against the local filesystem. The documented transform_symlinks mitigation does not contain relative targets because transform_symlink() returns early at sshfs.c:2181, while sshfs_readlink() at sshfs.c:2234 to sshfs.c:2236 otherwise copies the server-supplied link target to the kernel. A victim or victim-side tool that follows such a link through ordinary operations such as cp, rsync, backup tooling, or an editor can disclose readable local files back to the server or write server-controlled content to writable local files, potentially including startup or scheduled-task files. This issue is fixed in version 3.7.6.

A flaw was found in SSHFS. A malicious SFTP (Secure File Transfer Protocol) server can supply crafted symbolic links containing absolute paths or parent directory traversal sequences that are resolved by the client system. When a local user or automated tool accesses or copies files through the mounted directory, these links can escape the mount point, enabling the server to read or overwrite arbitrary local client files. This vulnerability can lead to sensitive information disclosure or arbitrary code execution if critical files are overwritten.