The remote SSH server may be affected by a directory traversal attack vector.
Description
The installed version of OpenSSH is 7.x prior to 7.5 and is affected by a flaw in the 'do_lsreaddir()' function in 'sftp-client.c' that allows traversing outside of a restricted path. The issue is due to the sftp-client not properly sanitizing input from a remote server, specifically backslashes during a recursive file transfer. This may allow a context-dependent attacker to create or overwrite files outside of the intended target directory.