A flaw was found with the libssh API function ssh_scp_new...
High severity
Unreviewed
Published
May 24, 2022
to the GitHub Advisory Database
•
Updated May 30, 2023
Description
Published by the National Vulnerability Database
Dec 10, 2019
Published to the GitHub Advisory Database
May 24, 2022
Last updated
May 30, 2023
A flaw was found with the libssh API function ssh_scp_new() in versions before 0.9.3 and before 0.8.8. When the libssh SCP client connects to a server, the scp command, which includes a user-provided path, is executed on the server-side. In case the library is used in a way where users can influence the third parameter of the function, it would become possible for an attacker to inject arbitrary commands, leading to a compromise of the remote target.
References