CVE-2026-66034 Details
Description
libssh2 through 1.11.1, fixed in commit a13bb6c, contains a missing bounds check vulnerability that allows a malicious SSH server to trigger an arbitrary-length heap out-of-bounds read and a free of an uninitialized pointer via the publickey subsystem. In libssh2_publickey_list_fetch(), the version 1 response parser reads a server-controlled comment_len value and advances the parse pointer without verifying sufficient bytes remain in the buffer, causing the out-of-bounds read to leak heap pointers from adjacent allocations defeating ASLR, followed by heap allocator state corruption when the error cleanup path frees an uninitialized pointer from a non-zeroed realloc() region.
A heap out-of-bounds read vulnerability has been identified in libssh2 versions prior to 1.11.1. This vulnerability allows a malicious SSH server to exploit the publickey subsystem, triggering an arbitrary-length out-of-bounds read and freeing an uninitialized pointer. The issue arises in the function libssh2_publickey_list_fetch(), where the version 1 response parser processes a server-controlled comment length value without adequate bounds checking. This oversight leads to the out-of-bounds read, which can leak heap pointers from adjacent memory allocations, bypassing Address Space Layout Randomization (ASLR). The vulnerability is further compounded by heap allocator state corruption, as the error cleanup process inadvertently frees an uninitialized pointer from a non-zeroed realloc() region.
Users can upgrade to libssh2 version 1.11.1 or later to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 24, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/libssh2/libssh2/commit/a13bb6c773f0d55ad1628cede57e99803cd898d9 | [email protected] | Patch |
| https://github.com/libssh2/libssh2/pull/2202 | [email protected] | Issue TrackingPatch |
| https://www.vulncheck.com/advisories/libssh2-heap-out-of-bounds-read-via-publickey-subsystem | [email protected] | PatchThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | [email protected] |
| CWE-908 | Use of Uninitialized Resource | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| libssh2 libssh2 | <= 1.11.1 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 30, 2026 | Initial Analysis | [email protected] |
| Jul 25, 2026 | CVE Modified | CISA-ADP |
| Jul 24, 2026 | CVE Modified | CISA-ADP |
| Jul 24, 2026 | New CVE Received | [email protected] |