Double-Free Vulnerability in libssh2 Affects SFTP Functionality
CVE-2026-66032
8.7HIGH
What is CVE-2026-66032?
A double-free vulnerability has been identified in libssh2, specifically in the sftp_open() function located in src/sftp.c. This flaw allows an attacker operating a malicious SSH server to exploit the heap space of any client that has authenticated and opened an SFTP session. The issue arises when an SSH response is processed incorrectly, leading to a situation where memory is freed twice. This can lead to critical overlapping allocations that might enable attackers to overwrite function pointers, potentially allowing for arbitrary code execution on glibc systems.
Affected Version(s)
libssh2 0 <= 1.11.1
libssh2 0 <= 1.11.1
libssh2 5e4776146552d898b9c0e1b313cd093fa8dc92d0
