Out-of-bounds read in libssh2 - CVE-2025-15661
Published: July 1, 2026
Vulnerability details
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.
Affected software
openEuler
Anolis OS
Ubuntu
libssh2
libssh2-debuginfo
libssh2-debugsource
libssh2-devel
libssh2-help
libssh2 (Ubuntu package)
libssh2-docs
How to mitigate CVE-2025-15661
libssh2-debuginfo - addressed in versions 1.9.0-12, 1.10.0-10, 1.11.0-7
libssh2-debugsource - addressed in versions 1.9.0-12, 1.10.0-10, 1.11.0-7
libssh2-devel - addressed in versions 1.9.0-12, 1.10.0-10, 1.11.0-7
libssh2-help - addressed in versions 1.9.0-12, 1.10.0-10, 1.11.0-7
libssh2 (Ubuntu package) - addressed in versions 1.11.0-4.1ubuntu0.24.04.2, 1.11.1-1ubuntu0.25.10.2, 1.11.1-1ubuntu0.26.04.2
libssh2-docs - update to 1.11.1-1
libssh2-devel - update to 1.11.1-1
libssh2 - update to 1.11.1-1