Back to overview

CVE-2026-66035

HIGH
7.5
CVSS 3.1
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.

Metadata

CVE ID
CVE-2026-66035
State
PUBLISHED
Assigner
VulnCheck
Reserved
2026-07-23 20:45 UTC
Published
2026-07-24 16:45 UTC
Last updated
2026-07-24 17:59 UTC
Primary CWE
CWE-122
Heap-based Buffer Overflow
Vendor / Product
libssh2 / libssh2
Sources
cve.org  ·  NVD

Severity & Metrics

7.5 HIGH CVSS 3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
SSVC — CISA Coordinator
Exploitation
none
Automatable
no
Tech. Impact
total
Affected products (1)
VendorProductPlatformVersions
libssh2 libssh2 0 ≤ 1.11.1, 42e33d81577ed4b95d4b4f6f845e5ee8efe5eeb4
Weakness (CWE)
CWESourceDescription
CWE-122 cna Heap-based Buffer Overflow
CVSS scores (2)
ScoreSeverityVersionSourceVector
7.7 HIGH 4.0 cna CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
7.5 HIGH 3.1 cna CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Back to overview