CVE-2026-0966: Libssh: 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.
Security readout for executives and security teams
Plain-English summary
A remote, unauthenticated attacker can crash an affected per-connection daemon process during GSSAPI authentication, but only when packet-level logging is enabled. The evidence supports connection-level service disruption; it does not establish a system-wide outage.
Executive priority
Prioritize exposed systems meeting both runtime conditions: GSSAPI authentication and packet-level logging. Patch during the next accelerated maintenance window, sooner for important externally reachable services. Emergency organization-wide action is not supported by the supplied evidence because exploitation has specific configuration prerequisites and no active exploitation is reported.
Technical view
Zero-length input passed to libssh's ssh_get_hexa() can cause denial of service during GSSAPI authentication when logging is SSH_LOG_PACKET (3) or higher. CVSS 3.0 is 6.5, with network access, high attack complexity, no privileges, no user interaction, and high availability impact.
Likely exposure
Exposure is concentrated in network-reachable services using affected libssh packages, GSSAPI authentication, and logging verbosity level 3 or higher. Listed affected platforms include RHEL 8–10, certain Red Hat Hardened Images, and OpenShift Container Platform 4 components. Listed libssh2 packages are unaffected.
Exploitation context
The attack is remote and requires no authentication, but depends on GSSAPI processing and unusually verbose packet logging, supporting the high-complexity rating. The bundle reports no CISA KEV listing and provides no evidence of active exploitation.
Researcher notes
The reported outcome is a self-denial of service affecting the per-connection daemon process. Do not infer host-wide compromise or confidentiality loss. The affected matrix distinguishes libssh from unaffected libssh2 packages. Exact fixed distribution package versions are absent, so validation should use the cited vendor advisories rather than upstream version assumptions.
Mitigation direction
Apply the applicable Red Hat security advisory updates after confirming package and platform applicability.
Consult libssh or Red Hat guidance for precise fixed versions; the bundle does not provide them.
Reduce logging below SSH_LOG_PACKET level 3 where operationally acceptable until updates are applied.
Restrict network access to affected services where verbose logging cannot be reduced promptly.
Validation and detection
Inventory installed libssh and libssh-main packages across listed Red Hat and OpenShift platforms.
Confirm whether exposed services use GSSAPI authentication paths.
Check runtime logging configuration for SSH_LOG_PACKET level 3 or higher.
Verify installed package versions against the applicable Red Hat advisory.
Confirm updated services remain available and expected authentication still functions.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-124: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The affected technology mentions containers, so container-specific ATT&CK technique review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-124 · source CWE mapping
Buffer Underwrite ('Buffer Underflow')
Buffer Underwrite ('Buffer Underflow') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.