Out-of-bounds Read 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.4% (34th 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 Learn

Learn about Out-of-bounds Read vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CONAN-LIBSSH2-21248783
  • published19 Oct 2026
  • disclosed24 Jul 2026
  • creditUnknown

Introduced: 24 Jul 2026

CVE-2026-66034  (opens in a new tab)
CWE-125  (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 Out-of-bounds Read via the publickey subsystem. An attacker can cause heap memory to be read out-of-bounds by enticing a user to connect to a malicious SSH server, potentially leaking heap pointers that may assist in bypassing memory protections, and may result in denial of service or arbitrary code execution.

Workaround

This vulnerability can be mitigated by strictly avoiding connections to untrusted SSH servers, enforcing outbound network firewall policies to block unknown IP addresses, and utilizing OS-level memory protections and service sandboxing for defense-in-depth.

CVSS Base Scores

version 4.0
version 3.1