# Ubuntu releases security updates for libssh to address multiple vulnerabilities

> **Key takeaway:** Multiple vulnerabilities in the libssh library, including a use-after-free and AES-GCM authentication failures, have been patched across several Ubuntu LTS releases.

**Published:** 2026-11-23T17:32:05+00:00 
**Source:** Ubuntu Security &amp; Release Notices 
**Category:** distro-news 
**Canonical URL:** https://fosswire.org/news/ubuntu-releases-security-updates-for-libssh-to-address-multi.html 

## Summary
Ubuntu has issued security notices (USN-9187-1) to address several critical vulnerabilities discovered in the libssh C library. These flaws range from denial-of-service risks to potential remote code execution and man-in-the-middle attacks. The vulnerabilities affect various versions of the Ubuntu Long Term Support (LTS) series, including 24.04, 22.04, 20.04, 18.04, and 16.04.

Users on newer releases like 24.04 LTS and 22.04 LTS can apply these fixes through standard system updates. However, users on older, end-of-standard-support versions such as 20.04, 18.04, and 16.04 LTS will require an Ubuntu Pro subscription to receive the necessary security patches via ESM (Expanded Security Maintenance).

## Technical breakdown of libssh vulnerabilities
- **Memory Safety:** A use-after-free vulnerability (CVE-2026-59850) allows a remote attacker to trigger data callbacks on closed channels, potentially leading to a crash or arbitrary code execution on Ubuntu 16.04, 18.04, and 20.04.
- **Cryptographic Integrity:** In builds using the OpenSSL backend, libssh failed to correctly verify AES-GCM authentication tags (CVE-2026-59847), enabling a man-in-the-middle attacker to modify encrypted traffic on Ubuntu 20.04.
- **Denial of Service (DoS):** Multiple flaws allow for resource exhaustion, including improper handling of zero maximum packet size in channel open messages (CVE-2026-59843) and incorrect handling of unknown request IDs from malicious SFTP servers (CVE-2026-59848).
- **Information Disclosure:** A lack of shell metacharacter sanitization during username expansion in ProxyCommand strings (CVE-2026-59846) could allow attackers to obtain sensitive information.

## Why it matters
Since libssh is a widely used C library for SSH communications, these patches are critical for system administrators managing remote access and automated SFTP workflows. The requirement for Ubuntu Pro to patch older LTS releases highlights the importance of extended support lifecycles for maintaining security in legacy enterprise environments.