What Happened
Ubuntu has published fixes for five libssh vulnerabilities in security notice USN-9187-1. All five affect Ubuntu 16.04 LTS, 18.04 LTS and 20.04 LTS, the long term support releases named in the notice. The Ubuntu libssh vulnerability set is not one bug. Two of the flaws cause denial of service, one can leak sensitive information, one lets an attacker in a machine-in-the-middle position modify encrypted traffic without detection, and one is a use-after-free that can crash the library or possibly execute arbitrary code.
For an MSP the useful question is narrow. Which client hosts run libssh, and which of them sit on an affected release? libssh is a library, not an application, so it usually arrives as a dependency of something else and tends to be missing from a hand written inventory. Older LTS releases are also the ones that stay in production for years, because something running on them is expensive to move.
Ubuntu has shipped the fix. The work left is finding the hosts, applying the update, and restarting whatever links against the library.
Timeline
- 2026-11-23: Ubuntu Security publishes USN-9187-1, covering five libssh vulnerabilities.
Who Is Affected
Any host running Ubuntu 16.04 LTS, 18.04 LTS or 20.04 LTS with libssh installed is in scope. In practice that means servers, jump hosts, build machines and appliances built on those releases, plus anything that pulled libssh in as a dependency.
Version detail drives triage. The notice ties CVE-2026-59843 and CVE-2026-59850 to all three releases, and CVE-2026-59847 to Ubuntu 20.04 LTS only. CVE-2026-59846 and CVE-2026-59848 are not restricted to a named release in the notice.
Two flaws need specific conditions to be reached. CVE-2026-59843 requires an authenticated user, so standing and shared SSH accounts widen the exposure. CVE-2026-59848 requires the victim to connect to a malicious SFTP server, so outbound client connections matter as much as inbound ones.
What This Costs an MSP
A denial of service on a client host is a stopped service and a phone call. Two of these five flaws are denial of service, so the first cost is unplanned triage on a host nobody expected to touch this week.
The harder cost sits in CVE-2026-59847. The notice says libssh verified AES-GCM authentication tags incorrectly when built with the OpenSSL backend, which means an attacker in the middle could change encrypted traffic and leave nothing a routine log review would catch. You cannot clean that up with a restart. Where you cannot rule out exposure, the response is patching plus rotating the keys and credentials that passed over those sessions.
Weigh that against a patch window on a maintenance schedule. The update is published and the work is known.
Technical Details: The Ubuntu Libssh Vulnerability Set
USN-9187-1 describes five issues. The versions and attack vectors below are as the notice states them.
- CVE-2026-59843: libssh did not correctly handle SSH channel open messages advertising a zero maximum packet size. An authenticated user could cause libssh to use excessive resources, leading to a denial of service. Ubuntu 16.04 LTS, Ubuntu 18.04 LTS and Ubuntu 20.04 LTS are affected.
- CVE-2026-59846: libssh did not correctly sanitize shell metacharacters when expanding usernames in ProxyCommand strings. An attacker could obtain sensitive information.
- CVE-2026-59847: libssh incorrectly verified AES-GCM authentication tags when built with the OpenSSL backend. A remote attacker in a machine-in-the-middle position could modify encrypted traffic without detection. Ubuntu 20.04 LTS only.
- CVE-2026-59848: libssh did not correctly handle SFTP server responses for unknown request IDs. A remote attacker controlling a malicious SFTP server could cause libssh to use excessive resources, leading to a denial of service.
- CVE-2026-59850: libssh could invoke data callbacks on channels after they had been closed, leading to a use-after-free. A remote attacker could crash libssh, resulting in a denial of service, or possibly execute arbitrary code. Ubuntu 16.04 LTS, Ubuntu 18.04 LTS and Ubuntu 20.04 LTS are affected.
What MSPs Should Do
Start with the hosts you can find today. Do not wait for a complete inventory before patching the ones you already know about.
- List every client host on Ubuntu 16.04 LTS, 18.04 LTS and 20.04 LTS, and record whether libssh is installed.
- Apply the libssh updates in USN-9187-1.
- Prioritise Ubuntu 20.04 LTS hosts for CVE-2026-59847, and prioritise anything reachable from the internet.
- Restart the services that link against libssh after patching, then confirm the version that is running rather than the package that is installed.
- Review who holds SSH accounts on the affected hosts. CVE-2026-59843 needs an authenticated user, so stale, shared and service accounts all count.
- Treat outbound SFTP connections from affected hosts as a risk path until the client is patched, because CVE-2026-59848 is reached from the server side of that connection.
- Where you cannot rule out exposure to CVE-2026-59846 or CVE-2026-59847, rotate the credentials and keys used on those hosts.
- Put a recurring patch check on those releases so the next advisory is a task with an owner.
How EnterProtect Helps
EnterProtect works with MSPs on security and backup. Vulnerability scanning gives you a standing view of out-of-date software across client environments, so patch work starts from a list instead of a guess. Backup keeps clean, restorable copies of the systems you protect, and recovery gets a client running again when a host goes down.
Both matter more on older LTS releases, where hosts tend to stay in production long past the point anyone intends. Patching libssh is still your job. EnterProtect's part is the record you patch from and the copy you restore from.
Frequently Asked Questions
Which Ubuntu Releases Are Affected by These Libssh Vulnerabilities?
Ubuntu Security names Ubuntu 16.04 LTS, Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. Two of the five flaws are tied to all three releases, and CVE-2026-59847 applies to Ubuntu 20.04 LTS only. The notice does not restrict CVE-2026-59846 or CVE-2026-59848 to a named release.
What Does CVE-2026-59847 Let an Attacker Do?
It lets a remote attacker in a machine-in-the-middle position modify encrypted traffic without detection. The notice says the cause is incorrect verification of AES-GCM authentication tags when libssh is built with the OpenSSL backend. It affects Ubuntu 20.04 LTS only.
Does CVE-2026-59843 Need a Valid SSH Account?
Yes. The notice describes it as reachable by an authenticated user sending SSH channel open messages that advertise a zero maximum packet size. That causes libssh to use excessive resources, which can lead to a denial of service. Removing SSH accounts that no longer need access to those hosts is a sensible standing practice.
Are Any of These Libssh Flaws Being Exploited in the Wild?
The sources for this advisory do not report exploitation of any of the five flaws. The fixes are published in USN-9187-1, so the reason to act is exposure rather than a confirmed campaign. Unpatched hosts on the affected releases remain exposed regardless of whether anyone is using the flaws yet.
What Can an Attacker Do With the Libssh Use-After-Free?
CVE-2026-59850 covers data callbacks invoked on channels after they were closed, which is a use-after-free. The notice says a remote attacker could crash libssh, causing a denial of service, or possibly execute arbitrary code. It affects Ubuntu 16.04 LTS, Ubuntu 18.04 LTS and Ubuntu 20.04 LTS.
How Do I Find Out Whether Libssh Is Installed on a Client Host?
libssh is a library, so most systems carry it as a dependency of other software rather than as a deliberate install. Check the package state on every host on Ubuntu 16.04 LTS, 18.04 LTS and 20.04 LTS instead of assuming it is absent. Treating it as present until proven otherwise is the safer default.
Sources
- USN-9187-1: libssh vulnerabilities (Ubuntu Security)