CVEfocus › CVE database › CVE-2026-0964

CVE-2026-0964Libssh: improper sanitation of paths received from scp servers

CVSS 5.0 MediumEPSS 0.5% (higher than 39% of CVEs)Published 2026-03-26Updated 2026-11-24Assigner: redhat

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.

CWE-22

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

22Fixed
6Fix pending
6Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 25.10libsshFixed0.11.2-1ubuntu0.2UBUNTU-CVE-2026-0964
Ubuntu 24.04libsshFixed0.10.6-2ubuntu0.3UBUNTU-CVE-2026-0964
Ubuntu 22.04libsshFixed0.9.6-2ubuntu0.22.04.6UBUNTU-CVE-2026-0964
Ubuntu 20.04libsshFix pending0.9.3-2ubuntu2.5+esm3 (Ubuntu Pro)UBUNTU-CVE-2026-0964
Ubuntu 18.04libsshFix pending0.8.0~20170825.94fa1e38-1ubuntu0.7+esm6 (Ubuntu Pro)UBUNTU-CVE-2026-0964
Ubuntu 16.04libsshFix pending0.6.3-4.3ubuntu0.6+esm4 (Ubuntu Pro)UBUNTU-CVE-2026-0964
Debian 14libsshFixed0.12.0-1DEBIAN-CVE-2026-0964
Debian 13libsshFixed0.11.5-0+deb13u1DEBIAN-CVE-2026-0964
Debian 12libsshFixed0.10.6-0+deb12u3DEBIAN-CVE-2026-0964
Red Hat Enterprise Linux 10libsshFixed0:0.12.0-2.el10RHSA-2026:18160
Red Hat Enterprise Linux 10libssh-configFixed0:0.12.0-2.el10RHSA-2026:18160
Red Hat Enterprise Linux 10libssh-develFixed0:0.12.0-2.el10RHSA-2026:18160
Red Hat Enterprise Linux 9libsshFixed0:0.10.4-18.el9RHSA-2026:18683
Red Hat Enterprise Linux 9libssh-configFixed0:0.10.4-18.el9RHSA-2026:18683
Red Hat Enterprise Linux 9libssh-develFixed0:0.10.4-18.el9RHSA-2026:18683
Red Hat Enterprise Linux 8libsshFix pending
Fix deferred
Red Hat Enterprise Linux 8libssh-configFix pending
Fix deferred
Red Hat Enterprise Linux 8libssh-develFix pending
Fix deferred
Red Hat Enterprise Linux 7libssh2Not affected
Red Hat Enterprise Linux 7libssh2-develNot affected
Red Hat Enterprise Linux 7libssh2-docsNot affected
Red Hat Enterprise Linux 6libssh2Not affected
Red Hat Enterprise Linux 6libssh2-develNot affected
Red Hat Enterprise Linux 6libssh2-docsNot affected
AlmaLinux 10libsshFixed0.12.0-2.el10ALSA-2026:18160
AlmaLinux 10libssh-configFixed0.12.0-2.el10ALSA-2026:18160
AlmaLinux 10libssh-develFixed0.12.0-2.el10ALSA-2026:18160
AlmaLinux 9libsshFixed0.10.4-18.el9ALSA-2026:18683
AlmaLinux 9libssh-configFixed0.10.4-18.el9ALSA-2026:18683
AlmaLinux 9libssh-develFixed0.10.4-18.el9ALSA-2026:18683
Rocky Linux 10libsshFixed0:0.12.0-2.el10RLSA-2026:18160
Rocky Linux 9libsshFixed0:0.10.4-18.el9RLSA-2026:18683
Alpine Linux 3.24libsshFixed0.12.0-r0ALPINE-CVE-2026-0964
Alpine Linux 3.23libsshFixed0.11.4-r0ALPINE-CVE-2026-0964

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

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.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.