PT-2026-64382 · Libssh2+2 · Libssh2+2

·

CVE-2026-66035

·

Published

2026-07-24

·

Updated

2026-09-03

CVSS v4.0

7.7

High

VectorAV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions libssh2 versions prior to 1.11.1
Description A pre-authentication heap buffer overflow occurs during Encrypt-then-MAC (ETM) cipher negotiation. A malicious SSH server can corrupt heap metadata in a connecting client by sending a packet where the packet length is smaller than the cipher's block size. In the fullpacket() function within src/transport.c, the ETM path allocates a buffer based on packet length but copies blocksize minus one bytes using memcpy. On 32-bit glibc, this allows an attacker to write controlled bytes into the SIZE field of an adjacent chunk, potentially leading to tcache bin confusion, overlapping live objects, and function pointer overwrites during the session handshake.
Recommendations Update libssh2 to the version containing commit 42e33d8.

Exploit

Fix

Heap Based Buffer Overflow

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

AZL-93399
CVE-2026-66035
ECHO-A13B-3527-8590
JLSEC-2026-1088
OESA-2026-3392
OESA-2026-3395
OESA-2026-3479
OPENSUSE-SU-2026:11454-1
OPENSUSE-SU-2026:21549-1
RHSA-2026:46955
SUSE-SU-2026:23049-1
SUSE-SU-2026:23187-1
SUSE-SU-2026:23214-1
SUSE-SU-2026:23225-1
SUSE-SU-2026:23245-1
SUSE-SU-2026:3525-1
SUSE-SU-2026:3526-1
SUSE-SU-2026:3541-1
USN-8722-1

Affected Products

Linuxmint
Ubuntu
Libssh2