=========================================================== == Subject: SCP Protocol Path Traversal in ssh_scp_pull_request() == == CVE ID#: CVE-2026-0964 == == Versions: libssh < 0.11.4; < 0.12.0 == == Summary: Improper sanitation of paths received from SCP servers == == Component: SCP client API == =========================================================== =========== Description =========== A malicious SCP server can send unexpected paths that could make the client application override local files outside of working directory. This could be misused to create malicious executable or configuration files and make the user execute them under specific consequences. This is the same issue as in OpenSSH, tracked as CVE-2019-6111. ================== Patch Availability ================== Patches addressing the issues have been posted to: https://www.libssh.org/security/ Additionally, libssh 0.11.4 and 0.12.0 have been issued as security releases to correct the defect. SSH administrators are advised to upgrade to these releases or apply the patch as soon as possible. ================== CVSSv3 calculation ================== CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L (5.0) ========== Workaround ========== Do not use SCP! SCP is deprecated for several years and will be removed in future releases! If you have to, the application MUST validate the path returned from `ssh_scp_request_get_filename()` is the path the application requested. The libssh does not do any writing in this case. ======= Credits ======= Originally reported by nevv of CTyun Red-Shield Security Lab. Patches provided by Jakub Jelen of the libssh team. ========================================================== == The libssh team ==========================================================