Out-of-bounds read in libssh2 - CVE-2025-15661

 

Out-of-bounds read in libssh2 - CVE-2025-15661

Published: July 1, 2026


Vulnerability identifier: #VU136047
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2025-15661
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: libssh2.org
Affected software:
libssh2

Detailed vulnerability description

The vulnerability allows a remote attacker to gain access to potentially sensitive information.

The vulnerability exists due to a boundary condition within the sftp_symlink() function in src/sftp.c. A malicious SSH server or a man-in-the-middle attacker can disclose heap memory contents or cause application crash by sending a crafted SSH_FXP_NAME response.


How to mitigate CVE-2025-15661

Install updates from vendor's repository.

Sources