USN-9187-1: libssh vulnerabilities

Published Nov 23, 2026
·
Updated

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)

Affected Software

40 affected componentsFixes available
All of the following
ubuntu/libssh-4<0.10.6-2ubuntu0.6
0.10.6-2ubuntu0.6
Ubuntu Ubuntu=24.04
All of the following
ubuntu/libssh-dev<0.10.6-2ubuntu0.6
0.10.6-2ubuntu0.6
Ubuntu Ubuntu=24.04
All of the following
ubuntu/libssh-gcrypt-4<0.10.6-2ubuntu0.6
0.10.6-2ubuntu0.6
Ubuntu Ubuntu=24.04
All of the following
ubuntu/libssh-gcrypt-dev<0.10.6-2ubuntu0.6
0.10.6-2ubuntu0.6
Ubuntu Ubuntu=24.04
All of the following
ubuntu/libssh-4<0.9.6-2ubuntu0.22.04.9
0.9.6-2ubuntu0.22.04.9
Ubuntu Ubuntu=22.04
All of the following
ubuntu/libssh-dev<0.9.6-2ubuntu0.22.04.9
0.9.6-2ubuntu0.22.04.9
Ubuntu Ubuntu=22.04
All of the following
ubuntu/libssh-gcrypt-4<0.9.6-2ubuntu0.22.04.9
0.9.6-2ubuntu0.22.04.9
Ubuntu Ubuntu=22.04
All of the following
ubuntu/libssh-gcrypt-dev<0.9.6-2ubuntu0.22.04.9
0.9.6-2ubuntu0.22.04.9
Ubuntu Ubuntu=22.04
All of the following
ubuntu/libssh-4<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=20.04
All of the following
ubuntu/libssh-dev<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=20.04
All of the following
ubuntu/libssh-gcrypt-4<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=20.04
All of the following
ubuntu/libssh-gcrypt-dev<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=20.04
All of the following
ubuntu/libssh-4<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=18.04
All of the following
ubuntu/libssh-dev<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=18.04
All of the following
ubuntu/libssh-gcrypt-4<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=18.04
All of the following
ubuntu/libssh-gcrypt-dev<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=18.04
All of the following
ubuntu/libssh-4<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=16.04
All of the following
ubuntu/libssh-dev<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=16.04
All of the following
ubuntu/libssh-gcrypt-4<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=16.04
All of the following
ubuntu/libssh-gcrypt-dev<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=16.04

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/libssh-4 to a version that resolves this vulnerability.

    Fixed in 0.10.6-2ubuntu0.6
  2. Upgrade

    Upgrade ubuntu/libssh-dev to a version that resolves this vulnerability.

    Fixed in 0.10.6-2ubuntu0.6
  3. Upgrade

    Upgrade ubuntu/libssh-gcrypt-4 to a version that resolves this vulnerability.

    Fixed in 0.10.6-2ubuntu0.6
  4. Upgrade

    Upgrade ubuntu/libssh-gcrypt-dev to a version that resolves this vulnerability.

    Fixed in 0.10.6-2ubuntu0.6
  5. Upgrade

    Upgrade ubuntu/libssh-4 to a version that resolves this vulnerability.

    Fixed in 0.9.6-2ubuntu0.22.04.9
  6. Upgrade

    Upgrade ubuntu/libssh-dev to a version that resolves this vulnerability.

    Fixed in 0.9.6-2ubuntu0.22.04.9
  7. Upgrade

    Upgrade ubuntu/libssh-gcrypt-4 to a version that resolves this vulnerability.

    Fixed in 0.9.6-2ubuntu0.22.04.9
  8. Upgrade

    Upgrade ubuntu/libssh-gcrypt-dev to a version that resolves this vulnerability.

    Fixed in 0.9.6-2ubuntu0.22.04.9
  9. Upgrade

    Upgrade ubuntu/libssh-4 to a version that resolves this vulnerability.

    Fixed in Ubuntu Pro
  10. Upgrade

    Upgrade ubuntu/libssh-dev to a version that resolves this vulnerability.

    Fixed in Ubuntu Pro
  11. Upgrade

    Upgrade ubuntu/libssh-gcrypt-4 to a version that resolves this vulnerability.

    Fixed in Ubuntu Pro
  12. Upgrade

    Upgrade ubuntu/libssh-gcrypt-dev to a version that resolves this vulnerability.

    Fixed in Ubuntu Pro

Event History

Nov 23, 2026
Advisory Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
DescriptionAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

Which deployments are exposed to the channel-open resource-exhaustion issue?

This issue affects Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, and Ubuntu 20.04 LTS. Exploitation requires an authenticated user who can send SSH channel open messages advertising a zero maximum packet size.

2

Does the encrypted-traffic modification issue require a network position?

Yes. The issue requires a remote attacker in a machine-in-the-middle position and applies when libssh is built with the OpenSSL backend. It only affected Ubuntu 20.04 LTS.

3

What access does an attacker need for the SFTP response handling issue?

The attacker must control a malicious SFTP server. Such a server can send responses with unknown request IDs and potentially cause excessive resource use leading to denial of service.

4

What is the impact of unsafe username expansion in ProxyCommand strings?

Improper sanitization of shell metacharacters during username expansion in ProxyCommand strings may allow an attacker to obtain sensitive information.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203