Skip to content

CVE-2026-47187 SSHFS Symlink Escape: Rogue SFTP Server → Local File Read/Write

CriticalCVSS 9.3 EPSS 0.50%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total
Technology
UbuntuDebianRed Hat

Description

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.

Upgrade path

13 packages: 8 fixed, 4 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/sshfs-fuse(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/sshfs-fuse(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/sshfs-fuse(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/sshfs-fuse(Ubuntu 26.10) All versions No fix listed No fix yet
alpine/sshfs(Alpine v3.20) < 3.7.6-r0 3.7.6-r0 Fixed
alpine/sshfs(Alpine v3.21) < 3.7.6-r0 3.7.6-r0 Fixed
alpine/sshfs(Alpine v3.22) < 3.7.6-r0 3.7.6-r0 Fixed
alpine/sshfs(Alpine v3.23) < 3.7.6-r0 3.7.6-r0 Fixed
alpine/sshfs(Alpine v3.24) < 3.7.6-r0 3.7.6-r0 Fixed
debian/sshfs-fuse(Debian 12) < 3.7.3-1.2~deb12u1; = 3.7.3-1.1 3.7.3-1.2~deb12u1 Fixed
debian/sshfs-fuse(Debian 13) < 3.7.3-1.2~deb13u1; = 3.7.3-1.1; = 3.7.3-1.2~deb12u1 3.7.3-1.2~deb13u1 Fixed
debian/sshfs-fuse(Debian 14) < 3.7.3-1.2; = 3.7.3-1.1; = 3.7.3-1.2~deb12u1; = 3.7.3-1.2~deb13u1 3.7.3-1.2 Fixed
libfuse sshfs = < 3.7.6 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
libfuse sshfs = < 3.7.6 No fix listed
debian/sshfs-fuse(Debian:12) < 3.7.3-1.2~deb12u1 3.7.3-1.2~deb12u1
debian/sshfs-fuse(Debian:14) < 3.7.3-1.2 3.7.3-1.2
debian/sshfs-fuse(Debian:13) < 3.7.3-1.2~deb13u1 3.7.3-1.2~deb13u1
redhat/fuse-sshfs(Red Hat:enterprise_linux:8) All versions No fix listed
debian/sshfs-fuse(Debian:12) = 3.7.3-1.1 No fix listed
debian/sshfs-fuse(Debian:13) = 3.7.3-1.1 No fix listed
debian/sshfs-fuse(Debian:13) = 3.7.3-1.2~deb12u1 No fix listed
debian/sshfs-fuse(Debian:14) = 3.7.3-1.1 No fix listed
debian/sshfs-fuse(Debian:14) = 3.7.3-1.2~deb12u1 No fix listed
debian/sshfs-fuse(Debian:14) = 3.7.3-1.2~deb13u1 No fix listed
ubuntu/sshfs-fuse(Ubuntu:22.04) All versions No fix listed
alpine/sshfs(Alpine:v3.20) < 3.7.6-r0 3.7.6-r0
alpine/sshfs(Alpine:v3.21) < 3.7.6-r0 3.7.6-r0
alpine/sshfs(Alpine:v3.22) < 3.7.6-r0 3.7.6-r0
alpine/sshfs(Alpine:v3.23) < 3.7.6-r0 3.7.6-r0
alpine/sshfs(Alpine:v3.24) < 3.7.6-r0 3.7.6-r0
ubuntu/sshfs-fuse(Ubuntu:24.04) All versions No fix listed
ubuntu/sshfs-fuse(Ubuntu:26.04) All versions No fix listed
ubuntu/sshfs-fuse(Ubuntu:26.10) All versions No fix listed

References