Double-Free Vulnerability in libssh2 Affects SFTP Functionality
CVE-2026-66032

8.7HIGH

Key Information:

Vendor

Libssh2

Status
Vendor
CVE Published:
24 July 2026

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

References

CVSS V4

Score:
8.7
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

VladimirEliTokarev
.