CVE-2026-0966: Libssh: libssh: denial of service via zero-length input in ssh_get_hexa()

Published Jan 26, 2026
·
Updated

A flaw was found in libssh. The API function sshgethexa() 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 SSHLOGPACKET (3) or higher. Successful exploitation could lead to a self-Denial of Service of the per-connection daemon process.

Other sources

Libssh: buffer underflow in sshgethexa() on invalid input

— Microsoft

The API function sshgethexa() is vulnerable, when 0-lenght input is provided to this function. This function is used internally in sshgetfingerprinthash() and sshprinthexa() (deprecated), which is vulnerable to the same input (length is provided by the calling application).

The function is also used internally in the gssapi code for logging the OIDs received by the server during GSSAPI authentication. This could be triggered remotely, when the server allows GSSAPI authentication and logging verbosity is set at least to SSHLOGPACKET (3). This could cause self-DoS of the per-connection daemon process.

— Red Hat

Affected Software

19 affected componentsFixes available
libssh libssh
Microsoft azl3 libssh 0.10.6-6
Microsoft azl3 libssh 0.10.6-5
Microsoft azl3 libssh 0.10.6-5<0.10.6-6
0.10.6-6
Microsoft azl3 libssh 0.10.6-7<0.10.6-7
0.10.6-7
Microsoft cbl2 libssh 0.10.6-5<0.10.6-6
0.10.6-6
Microsoft azl3 libssh 0.10.6-6<0.10.6-7
0.10.6-7
alpine/libssh<0.11.4-r0
0.11.4-r0
alpine/libssh<0.12.0-r0
0.12.0-r0
libssh libssh<0.11.4
redhat Hardened Images
redhat OpenShift Container Platform=4.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
redhat Enterprise Linux=10.0
debian/libssh<=0.10.6-0+deb12u2
0.10.6-0+deb12u30.11.5-0+deb13u10.12.2-1
debian/libssh<0.10.6-0+deb12u3
0.10.6-0+deb12u3
debian/libssh<0.11.5-0+deb13u1
0.11.5-0+deb13u1
debian/libssh<0.12.0-1
0.12.0-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 0.10.6-6
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 0.10.6-7
  3. Upgrade

    Upgrade alpine/libssh to a version that resolves this vulnerability.

    Fixed in 0.11.4-r0
  4. Upgrade

    Upgrade alpine/libssh to a version that resolves this vulnerability.

    Fixed in 0.12.0-r0
  5. Upgrade

    Upgrade debian/libssh to a version that resolves this vulnerability.

    Fixed in 0.10.6-0+deb12u3Fixed in 0.11.5-0+deb13u1Fixed in 0.12.2-1
  6. Upgrade

    Upgrade debian/libssh to a version that resolves this vulnerability.

    Fixed in 0.10.6-0+deb12u3
  7. Upgrade

    Upgrade debian/libssh to a version that resolves this vulnerability.

    Fixed in 0.11.5-0+deb13u1
  8. Upgrade

    Upgrade debian/libssh to a version that resolves this vulnerability.

    Fixed in 0.12.0-1

Event History

Jan 26, 2026
Data Sourced
via Red Hat·11:21 PM
DescriptionSeverityAffected Software
Mar 26, 2026
CVE Published
via MITRE·08:06 PM
Data Sourced
via MITRE·08:06 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:17 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·09:17 PM
Affected Software
Mar 31, 2026
Data Sourced
via Microsoft·08:01 AM
DescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203