Skip to content
OpenAdvisories
Medium USN-9187-1 5 CVEs

libssh vulnerabilities

Published Nov 23, 2026 · Updated Nov 24, 2026

Summary

Haruto Kimura, Rinku Das, and Yi Lin discovered that libssh did not
correctly handle SSH channel open messages advertising a zero maximum
packet size. An authenticated user could possibly use this issue to cause
libssh to use excessive resources, leading to a denial of service. This
issue only affected Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, and
Ubuntu 20.04 LTS. (CVE-2026-59843)

Mikhail Ilin and Saransh Rana discovered that libssh did not correctly
sanitize shell metacharacters when expanding usernames in ProxyCommand
strings. An attacker could possibly use this issue to obtain sensitive
information. (CVE-2026-59846)

Ben Smyth discovered that libssh incorrectly verified AES-GCM
authentication tags when built with the OpenSSL backend. A remote attacker
in a machine-in-the-middle position could possibly use this issue to modify
encrypted traffic without detection. This issue only affected Ubuntu 20.04
LTS. (CVE-2026-59847)

It was discovered that libssh did not correctly handle SFTP server
responses for unknown request IDs. A remote attacker controlling a
malicious SFTP server could possibly use this issue to cause libssh to use
excessive resources, leading to a denial of service. (CVE-2026-59848)

Zhou Qingyang discovered that libssh could invoke data callbacks on
channels after they had been closed, leading to a use-after-free. A remote
attacker could possibly use this issue to cause libssh to crash, resulting
in a denial of service, or possibly execute arbitrary code. This issue only
affected Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, and Ubuntu 20.04 LTS.
(CVE-2026-59850)

Fixed packages 5

ReleasePackageFixed in
Ubuntu · 22.04 LTS 22.04:LTS libssh 0.9.6-2ubuntu0.22.04.9
Ubuntu · 24.04 LTS 24.04:LTS libssh 0.10.6-2ubuntu0.6
Ubuntu · Pro 16.04 LTS Pro:16.04:LTS libssh 0.6.3-4.3ubuntu0.6+esm6
Ubuntu · Pro 18.04 LTS Pro:18.04:LTS libssh 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm8
Ubuntu · Pro 20.04 LTS Pro:20.04:LTS libssh 0.9.3-2ubuntu2.5+esm5

Vulnerabilities 5

References

  • report
    https://ubuntu.com/security/CVE-2026-59843
  • report
    https://ubuntu.com/security/CVE-2026-59846
  • report
    https://ubuntu.com/security/CVE-2026-59847
  • report
    https://ubuntu.com/security/CVE-2026-59848
  • report
    https://ubuntu.com/security/CVE-2026-59850