Unchecked Input for Loop Condition Affecting libssh2 package, versions [0,]


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.92% (57th 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-LIBSSH2-17660952
  • published28 Jun 2026
  • disclosed17 Jun 2026
  • creditUnknown

Introduced: 17 Jun 2026

CVE-2026-55199  (opens in a new tab)
CWE-606  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

Affected versions of this package are vulnerable to Unchecked Input for Loop Condition in the SSH_MSG_EXT_INFO handler during the initial handshake process. An attacker can cause the client application to become unresponsive by sending a crafted extension count value that triggers an infinite CPU loop. This is achieved by a malicious SSH server setting the nr_extensions field to a large value, causing the client to spin in a tight loop and exhaust CPU resources.

Workaround

This vulnerability can be mitigated by ensuring clients only connect to trusted SSH servers and implementing outbound network access controls (egress filtering) to block connections to unknown or untrusted external hosts.

CVSS Base Scores

version 4.0
version 3.1