Skip to content
OpenAdvisories
Unscored USN-8051-2 0 CVEs

libssh vulnerabilities

Published Feb 23, 2026 · Updated Jun 25, 2026

Summary

USN-8051-1 fixed vulnerabilities in libssh. This update provides the
corresponding updates for Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, and Ubuntu
20.04 LTS.

Original advisory details:

It was discovered that libssh clients incorrectly handled the key exchange
process. A remote attacker could possibly use this issue to cause libssh
clients to crash, resulting in a denial of service. (CVE-2025-8277)

It was discovered that the libssh SCP client incorrectly sanitized paths
received from servers. A remote attacker could use this issue to cause
libssh SCP clients to overwrite files outside of the working directory and
possibly execute arbitrary code. (CVE-2026-0964)

It was discovered that libssh incorrectly handled parsing configuration
files. A local attacker could possibly use this issue to cause libssh to
access non-regular files, resulting in a denial of service. (CVE-2026-0965)

It was discovered that libssh incorrectly handled the ssh_get_hexa()
function. A remote attacker could possibly use this issue to cause libssh
to crash, resulting in a denial of service. (CVE-2026-0966)

It was discovered that libssh incorrectly handled certain regular
expressions. A local attacker could possibly use this issue to cause
libssh to consume resources, resulting in a denial of service.
(CVE-2026-0967)

It was discovered that the libssh SFTP client incorrectly handled certain
malformed longname fields. A remote attacker could use this issue to cause
libssh SFTP clients to crash, resulting in a denial of service, or
possibly execute arbitrary code. (CVE-2026-0968)

Fixed packages 3

ReleasePackageFixed in
Ubuntu · Pro 16.04 LTS Pro:16.04:LTS libssh 0.6.3-4.3ubuntu0.6+esm4
Ubuntu · Pro 18.04 LTS Pro:18.04:LTS libssh 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm6
Ubuntu · Pro 20.04 LTS Pro:20.04:LTS libssh 0.9.3-2ubuntu2.5+esm3

References

  • report
    https://ubuntu.com/security/CVE-2025-8277
  • report
    https://ubuntu.com/security/CVE-2026-0964
  • report
    https://ubuntu.com/security/CVE-2026-0965
  • report
    https://ubuntu.com/security/CVE-2026-0966
  • report
    https://ubuntu.com/security/CVE-2026-0967
  • report
    https://ubuntu.com/security/CVE-2026-0968