Technical impact
The flaw lies in the SSH_FXP_REALPATH handler of the Erlang OTP ssh_sftpd module. Unlike other SFTP operation handlers, this handler invokes relate_file_name/3 with Canonicalize set to false, allowing a client’s .. components to bypass the is_within_root/2 check. The resulting uncanonicalized path then flows into resolve_symlinks/2, which walks upward from the configured root and performs read_link() system calls on arbitrary filesystem paths. The server’s reply differs depending on whether the target path exists – SSH_FXP_NAME for success, SSH_FX_NO_SUCH_FILE for failure – thus exposing a path‑existence oracle. An authenticated SFTP user can repeatedly send crafted REALPATH requests to deduce the presence or absence of files and directories outside the intended root, potentially revealing sensitive files, directories, or mount points. However, the vulnerability does not leak file contents, credentials, or write permissions; it only provides existence information that could assist other attacks.
Affected Systems
Affected systems include Erlang/OTP releases from 17.0 up to and including 27.3.4.13, plus the specific releases 28.5.0.3 and 29.0.3, and the corresponding ssh module versions 3.0.1 through 5.2.11.8, 5.5.2.2, and 6.0.2. OTP versions before 17.0 (ssh before 3.0.1) have an unknown status regarding this issue.
Risk and Exploitability
The CVSS score of 2.3 denotes a low overall severity, and the EPSS of <1% indicates that exploitation is unlikely. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires an authenticated SFTP session, so an attacker must already have valid credentials. Once authenticated, the attacker can send repeated REALPATH requests to enumerate the host’s filesystem structure outside the SFTP root. The gathered data can be useful in planning further attacks.
Debian DSA