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
| Release | Package | Fixed 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
-
Medium 6.5
Libssh: libssh: denial of service via zero advertised channel packet size
A flaw was found in libssh. A remote authenticated peer can advertise a zero maximum packet size in SSH_MSG_CHANNEL_OPEN, causing later channel writes to loop indefinitely and consume CPU, leading to denial of service.
-
Medium 5.9
Libssh: libssh: integrity downgrade via openssl aes-gcm tag verification
A flaw was found in libssh. Incorrect AES-GCM finalization checks in builds using the OpenSSL backend can effectively remove integrity protection, allowing an in-path attacker to modify plaintext on the wire without detection.
-
Medium 5.3
Libssh: libssh: denial of service via sftp responses with unknown request ids
A flaw was found in libssh. A malicious SFTP server can send responses for unknown request IDs that libssh clients keep queued indefinitely, causing unbounded memory growth and client-side denial of service.
-
Medium 4.3
Libssh: libssh: use-after-free via data callbacks on closed channels
A flaw was found in libssh. If data packets are processed after a channel is closed, channel data callbacks can be invoked after the associated data has already been freed, leading to crashes or possible use-after-free conditions.
-
Low 3.9
Libssh: libssh: information disclosure via proxycommand %r username expansion
A flaw was found in libssh. A malicious username expanded through %r in ProxyCommand handling can inject shell metacharacters, exposing environment variables and causing unintended shell behavior.