
Canonical Patches Five libssh Vulnerabilities Across Ubuntu LTS Releases
Canonical has published Ubuntu Security Notice USN-9187-1, addressing five vulnerabilities in libssh, the C-based SSH protocol library shipped across Ubuntu long-term support distributions. Released on November 23, 2026, the advisory documents fixes spanning five LTS generations, from Ubuntu 16.04 LTS through Ubuntu 24.04 LTS. According to the official Ubuntu security notice USN-9187-1, the flaws affect core protocol parsing, cryptographic tag verification, username expansion, SFTP response handling, and channel memory lifecycle management. While two vulnerabilities span the broader support matrix, three of the five tracked defects are scoped specifically to older LTS branches rather than the newest 22.04 LTS and 24.04 LTS releases. Because libssh underpins automated remote administration, container orchestration, and software deployment clients, the patches carry immediate relevance for security teams managing mixed Ubuntu fleets.
Cryptographic, Memory, and Protocol Flaws Detailed in USN-9187-1
The five Common Vulnerabilities and Exposures tracked under USN-9187-1 expose distinct failure modes inside libssh's C implementation. First, CVE-2026-59846, reported by Mikhail Ilin and Saransh Rana, stems from improper sanitization of shell metacharacters when expanding usernames inside ProxyCommand strings, potentially allowing an attacker to obtain sensitive information. Second, CVE-2026-59848 involves incorrect handling of SFTP server responses for unknown request IDs; a remote attacker operating a malicious SFTP server could exploit this behavior to force excessive resource consumption and trigger a denial of service.
The remaining three flaws are restricted to earlier Ubuntu LTS releases. Under CVE-2026-59843, discovered by Haruto Kimura, Rinku Das, and Yi Lin, libssh failed to properly handle SSH channel open messages advertising a zero maximum packet size, enabling an authenticated user to exhaust resources on Ubuntu 16.04 LTS, 18.04 LTS, and 20.04 LTS. CVE-2026-59850, identified by Zhou Qingyang on those same three releases, allows data callbacks on already closed channels, creating a use-after-free condition that could crash the library or potentially permit arbitrary code execution. Finally, CVE-2026-59847, discovered by Ben Smyth and affecting only Ubuntu 20.04 LTS, concerns flawed AES-GCM authentication tag verification when libssh is compiled with the OpenSSL backend, enabling a machine-in-the-middle attacker to alter encrypted traffic undetected.
Affected Package Matrix and Ubuntu Release Targets
Canonical's remediation distributes updated binary and development packages across four package names per release: libssh-4, libssh-dev, libssh-gcrypt-4, and libssh-gcrypt-dev. While the OpenSSL-backed variants carry the CVE-2026-59847 AES-GCM verification defect on Ubuntu 20.04 LTS, both OpenSSL and libgcrypt library builds and their corresponding development headers receive versioned updates in lockstep.
The patched package versions specified in USN-9187-1 are 0.10.6-2ubuntu0.6 for Ubuntu 24.04 LTS (noble) and 0.9.6-2ubuntu0.22.04.9 for Ubuntu 22.04 LTS (jammy). Older environments require Extended Security Maintenance builds: 0.9.3-2ubuntu2.5+esm5 on Ubuntu 20.04 LTS (focal), 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm8 on Ubuntu 18.04 LTS (bionic), and 0.6.3-4.3ubuntu0.6+esm6 on Ubuntu 16.04 LTS (xenial). Canonical also references USN-8699-1 as a related notice. For standard deployments on 22.04 LTS and 24.04 LTS, applying a routine system update installs the corrected shared libraries and headers.
Operational Impact on Automated Infrastructure and Developer Toolchains
In enterprise cloud, robotics, and AI compute infrastructure, libssh frequently operates beneath configuration-management agents, CI/CD runners, artifact transfer scripts, and bastion-routed developer workflows. The ProxyCommand metacharacter bug (CVE-2026-59846) and SFTP unknown-request handling flaw (CVE-2026-59848) directly affect automated client connections to untrusted or compromised jump hosts and external file repositories. Organizations running legacy model-serving nodes or embedded appliances on Ubuntu 20.04 LTS face heightened exposure because all five CVEs apply to that release, including silent ciphertext modification via CVE-2026-59847 over untrusted network paths and remote memory corruption via CVE-2026-59850.
Engineering teams building custom C or C++ services against libssh-dev or libssh-gcrypt-dev should verify whether their build pipelines dynamically link the system shared object or vendor static archives. Dynamic consumers gain protection after updating the runtime packages and restarting dependent daemons, whereas statically linked tools require rebuilding against the patched development headers.
Update Scope, Support Tiers, and Disclosure Boundaries
Several operational and licensing boundaries govern how organizations can obtain these fixes. Standard security updates apply directly only to Ubuntu 24.04 LTS and Ubuntu 22.04 LTS. Patches for Ubuntu 20.04 LTS and Ubuntu 18.04 LTS are gated behind Ubuntu Pro, Canonical's subscription service that provides ten-year security coverage across 25,000+ packages in Main and Universe repositories and remains free for up to five machines. Ubuntu 16.04 LTS requires Ubuntu Pro alongside the Legacy Support add-on. Unsubscribed legacy hosts beyond those limits will not receive the ESM builds via standard channels.
Furthermore, USN-9187-1 describes each exploit vector cautiously, stating attackers could possibly cause resource exhaustion, information disclosure, encrypted traffic modification, or arbitrary code execution. The notice omits CVSS scores, active-exploitation telemetry, and performance benchmarks, leaving runtime regression verification to system operators.
Automated Vertex AI (gemini-4-hydrogen) primary-source report; reviewed 2026-11-24.



