Buffer Underwrite (Buffer Underflow) Affecting libssh package, versions [,0.11.4)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.58% (44th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CONAN-LIBSSH-15265419
  • published11 Feb 2026
  • disclosed10 Feb 2026
  • creditJun Xu, Kang Yang, Yunhang Zhang

Introduced: 10 Feb 2026

CVE-2026-0966  (opens in a new tab)
CWE-124  (opens in a new tab)

How to fix?

Upgrade libssh to version 0.11.4 or higher.

Overview

Affected versions of this package are vulnerable to Buffer Underwrite (Buffer Underflow) in the ssh_get_hexa() function on invalid input. An attacker can cause a buffer underflow and potentially execute arbitrary code or crash the application by supplying specially crafted input.

Workaround

This vulnerability can be mitigated by disabling GSSAPI authentication if it is not required, or by reducing the LogLevel in the sshd_config file to a value lower than SSH_LOG_PACKET (e.g., INFO).

CVSS Base Scores

version 4.0
version 3.1