CVE-2026-0966Libssh: libssh: denial of service via zero-length input in ssh_get_hexa()
A flaw was found in libssh. The API function `ssh_get_hexa()` is vulnerable to a denial of service when processing zero-length input. This can be exploited remotely by an attacker during GSSAPI (Generic Security Service Application Program Interface) authentication if the server's logging verbosity is set to `SSH_LOG_PACKET (3)` or higher. Successful exploitation could lead to a self-Denial of Service of the per-connection daemon process.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | libssh | Fixed | 0.11.2-1ubuntu0.2 | UBUNTU-CVE-2026-0966 |
| Ubuntu 24.04 | libssh | Fixed | 0.10.6-2ubuntu0.3 | UBUNTU-CVE-2026-0966 |
| Ubuntu 22.04 | libssh | Fixed | 0.9.6-2ubuntu0.22.04.6 | UBUNTU-CVE-2026-0966 |
| Ubuntu 20.04 | libssh | Fix pending | 0.9.3-2ubuntu2.5+esm3 (Ubuntu Pro) | UBUNTU-CVE-2026-0966 |
| Ubuntu 18.04 | libssh | Fix pending | 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm6 (Ubuntu Pro) | UBUNTU-CVE-2026-0966 |
| Ubuntu 16.04 | libssh | Fix pending | 0.6.3-4.3ubuntu0.6+esm4 (Ubuntu Pro) | UBUNTU-CVE-2026-0966 |
| Debian 14 | libssh | Fixed | 0.12.0-1 | DEBIAN-CVE-2026-0966 |
| Debian 13 | libssh | Fixed | 0.11.5-0+deb13u1 | DEBIAN-CVE-2026-0966 |
| Debian 12 | libssh | Fixed | 0.10.6-0+deb12u3 | DEBIAN-CVE-2026-0966 |
| Red Hat Enterprise Linux 10 | libssh | Fixed | 0:0.12.0-2.el10 | RHSA-2026:18160 |
| Red Hat Enterprise Linux 10 | libssh-config | Fixed | 0:0.12.0-2.el10 | RHSA-2026:18160 |
| Red Hat Enterprise Linux 10 | libssh-devel | Fixed | 0:0.12.0-2.el10 | RHSA-2026:18160 |
| Red Hat Enterprise Linux 9 | libssh | Fixed | 0:0.10.4-18.el9 | RHSA-2026:18683 |
| Red Hat Enterprise Linux 9 | libssh-config | Fixed | 0:0.10.4-18.el9 | RHSA-2026:18683 |
| Red Hat Enterprise Linux 9 | libssh-devel | Fixed | 0:0.10.4-18.el9 | RHSA-2026:18683 |
| Red Hat Enterprise Linux 8 | libssh | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | libssh-config | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | libssh-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | libssh2 | Not affected | ||
| Red Hat Enterprise Linux 7 | libssh2-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | libssh2-docs | Not affected | ||
| Red Hat Enterprise Linux 6 | libssh2 | Not affected | ||
| Red Hat Enterprise Linux 6 | libssh2-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | libssh2-docs | Not affected | ||
| AlmaLinux 10 | libssh | Fixed | 0.12.0-2.el10 | ALSA-2026:18160 |
| AlmaLinux 10 | libssh-config | Fixed | 0.12.0-2.el10 | ALSA-2026:18160 |
| AlmaLinux 10 | libssh-devel | Fixed | 0.12.0-2.el10 | ALSA-2026:18160 |
| AlmaLinux 9 | libssh | Fixed | 0.10.4-18.el9 | ALSA-2026:18683 |
| AlmaLinux 9 | libssh-config | Fixed | 0.10.4-18.el9 | ALSA-2026:18683 |
| AlmaLinux 9 | libssh-devel | Fixed | 0.10.4-18.el9 | ALSA-2026:18683 |
| Rocky Linux 10 | libssh | Fixed | 0:0.12.0-2.el10 | RLSA-2026:18160 |
| Rocky Linux 9 | libssh | Fixed | 0:0.10.4-18.el9 | RLSA-2026:18683 |
| Alpine Linux 3.24 | libssh | Fixed | 0.12.0-r0 | ALPINE-CVE-2026-0966 |
| Alpine Linux 3.23 | libssh | Fixed | 0.11.4-r0 | ALPINE-CVE-2026-0966 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 9
- Red Hat Hardened Images
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat OpenShift Container Platform 4
Workaround: Applications using libssh should avoid passing zero-length input to ssh_get_hexa(), ssh_get_fingerprint_hash(), and ssh_print_hexa(). For the remotely reachable GSSAPI authentication path, disable GSSAPI authentication in the affected libssh-based application if it is not required, or configure that application's libssh logging verbosity below SSH_LOG_PACKET (3). These measures address the GSSAPI logging path; they do not prevent other callers from passing zero-length input to the affected functions. Configuration and any required restart depend on the application using libssh. Changing the host's OpenSSH sshd_config or restarting the OpenSSH sshd service is not a general mitigation for applications using libssh. Apply the relevant vendor update containing the fix. Upstream fixed this issue in libssh 0.11.4 and 0.12.0; distribution packages may include a backported fix.
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2026:18160 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:18683 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:7067 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2026:18160
- https://access.redhat.com/errata/RHSA-2026:18683
- https://access.redhat.com/errata/RHSA-2026:7067
- https://access.redhat.com/security/cve/CVE-2026-0966
- https://bugzilla.redhat.com/show_bug.cgi?id=2433121
- https://www.libssh.org/2026/02/10/libssh-0-12-0-and-0-11-4-security-releases/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.