6.5medium
Libssh: libssh: denial of service via zero-length input in ssh_get_hexa()
- Severity
- 6.5medium CVSS:3.0 by redhat
- Exploit likelihood
- 0.66% (higher than 52% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| libssh | Not specified Not affected: from 0:0.12.0-2.el10 before *, from 0:0.10.4-18.el9 before * | CVE List |
| libssh-main | Not specified Not affected: from 0.12.0-1.1.hum1 before * | CVE List |
| libssh2 | Not specified | CVE List |
| openshift/ose-rhel-coreos-8 | Not specified | CVE List |
| openshift/ose-rhel-coreos-9 | Not specified | CVE List |
| libssh libssh | before 0.11.4 | NVD |
| redhat hardened_images | Not specified | NVD |
| redhat openshift_container_platform | 4.0 | NVD |
| redhat enterprise_linux | 8.0, 9.0, 10.0 | NVD |
All scores
| redhat | 6.5medium CVSS:3.0 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H |
| NVD | 8.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
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.
NVD (es)
La función API 'ssh_get_hexa()' es vulnerable cuando se proporciona una entrada de longitud 0 a esta función. Esta función se utiliza internamente en 'ssh_get_fingerprint_hash()' y 'ssh_print_hexa()' (obsoleta), la cual es vulnerable a la misma entrada (la longitud es proporcionada por la aplicación que realiza la llamada). La función también se utiliza internamente en el código gssapi para registrar los OID recibidos por el servidor durante la autenticación GSSAPI. Esto podría activarse de forma remota cuando el servidor permite la autenticación GSSAPI y la verbosidad del registro se establece al menos en SSH_LOG_PACKET (3). Esto podría causar un auto-DoS del proceso demonio por conexión.
References
| 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 | |
| https://access.redhat.com/security/cve/CVE-2026-0966 | mitigation, vdb-entry, vendor-advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2433121 | issue-tracking, vendor-advisory | |
| https://www.libssh.org/2026/02/10/libssh-0-12-0-and-0-11-4-security-releases/ | release-notes | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-0966 changed 2026-11-24 | CVE Terms of Use |
| NVD | CVE-2026-0966 changed 2026-11-24 | Public domain |