Technical impact
The Erlang OTP SSH daemon (ssh_sftpd module) contains a path‑traversal flaw that allows an authenticated SFTP user to modify file attributes beyond the intended chroot boundary. The daemon retains the raw, user‑supplied path in file handles instead of the chroot‑resolved path, causing SSH_FXP_FSETSTAT operations to affect the real filesystem path and bypass the root directory restriction. Only metadata such as permissions, ownership, and timestamps can be altered; the contents of the files remain inaccessible. The vulnerability is triggered when the SSH daemon is configured with the root option and a target file exists on the host with the same relative path.
Affected Systems
The vulnerability is present in Erlang OTP releases from 17.0 up to, but not including, OTP 26.2.5.20. It also affects the specific sub‑releases OTP 27.3.4.11 and OTP 28.4.3. Correspondingly, the affected SSH component versions are 3.0.1 up to but not including 5.1.4.15, 5.2.11.7, and 5.5.2. Systems running these OTP and SSH releases that configure the SSH daemon to use the 'root' option for the SFTP subsystem are vulnerable.
Risk and Exploitability
A remote attacker who can establish an authenticated SFTP session on an affected server that uses the root option can exploit the flaw by targeting any existing file that shares the same relative path on the real filesystem. The attacker can change that file’s permissions, ownership, or timestamps. If the SSH daemon runs as root, the attacker can elevate privileges by setting the set‑uid bit on executables, altering ownership of critical system files, or making configuration files world‑writable. The CVSS score is 5.3, the EPSS score is < 1 %, and the vulnerability is not listed in CISA KEV. Although the exploitation probability is low, the potential for privilege escalation warrants timely remediation.
Debian DSA