REDHAT-BUG-2487603: Medium severity Ericsson Erlang/OTP vulnerability
Exposure of Sensitive Information to an Unauthorized Actor vulnerability in Erlang OTP ssh (sshsftpd module) allows File Discovery.
The SSHFXPREADLINK handler in sshsftpd sends the raw result of file:readlink/2 to the client without calling chrootfilename/2 to strip the backend root prefix. An authenticated SFTP client can create a symlink inside the chroot pointing to /; sshsftpd resolves the target to the absolute backend root and stores it on disk. Reading the symlink back via SSHFXPREADLINK returns that absolute path, for example /data/sftp, instead of the chrooted value /.
The information disclosed is the absolute filesystem path of the SFTP root directory and of any symlink targets within it. No file contents, credentials, or access to paths outside the root directory are obtainable through this issue alone.
This vulnerability is associated with program files lib/ssh/src/sshsftpd.erl.
This issue affects OTP from OTP 17.0 before 29.0.2, 28.5.0.2 and 27.3.4.13 corresponding to ssh from 3.0.1 before 6.0.1, 5.5.2.1 and 5.2.11.8.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 29.0.2 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 28.5.0.2 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 27.3.4.13 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 6.0.1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 5.5.2.1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 5.2.11.8
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated SFTP client using the ssh_sftpd module can exploit it. The client must be able to create and then read a symbolic link within the configured SFTP chroot.
What information can be disclosed?
The issue exposes absolute filesystem paths, including the backend SFTP root directory and symlink targets within that root. It does not by itself disclose file contents or credentials, and it does not grant access outside the root directory.
Which releases are affected and which releases contain fixes?
Affected OTP releases range from OTP 17.0 before OTP 29.0.2, 28.5.0.2, and 27.3.4.13. The corresponding affected SSH releases range from 3.0.1 before SSH 6.0.1, 5.5.2.1, and 5.2.11.8.