Logo
vulnerabilityCVE-2026-66035
Name
CVE-2026-66035
Source
NVD ( link)Debian ( link)
Description
libssh2 through 1.11.1, fixed in commit 42e33d8, contains a pre-authentication heap buffer overflow vulnerability that allows a malicious SSH server to corrupt heap metadata in any connecting client by sending a packet with a packet_length smaller than the cipher's block size during Encrypt-then-MAC cipher negotiation. In the fullpacket() function in src/transport.c, the ETM path allocates a buffer of packet_length bytes but copies blocksize minus one bytes via memcpy, causing an overflow that on 32-bit glibc writes attacker-controlled bytes into an adjacent chunk's SIZE field, enabling tcache bin confusion, overlapping live objects, and function pointer overwrite during the session handshake before authentication.
Published Date
Updated Date
Workaround
-

Analysis#


Affected Component
Analysis
libssh2
Exploitable

Vulnerability Ratings#


7.7
CVSSv4
7.5
CVSSv31
NaN
other

Others affected components#


Name
Project
Project Version
Version
Status
buildroot
2025.02.x
1.11.1
Exploitable
buildroot
master
1.11.1
Patched
openwrt
openwrt-25.12
1.11.1-r1
Exploitable
yocto
kirkstone
1.10.0
Exploitable
yocto
master
1.11.1
Patched
yocto
scarthgap
1.11.1
Exploitable

Resolved with patches#


libssh2 (buildroot:master)

#
Title
Author
Resolve
1
transport: fix potential heap overflow on ETM decrypt
Viktor Szakats <commit@vsz.me>
CVE-2026-66035

libssh2 (yocto:master)

#
Title
Author
Resolve
1
transport: fix potential heap overflow on ETM decrypt
Viktor Szakats <commit@vsz.me>
CVE-2026-66035