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
Gentoo Linux
Debian Linux
openEuler
Anolis OS
Ubuntu
libssh2-1t64 (Ubuntu package)
libssh2-debuginfo
libssh2-debugsource
libssh2-devel
libssh2-help
libssh2
libssh2-docs
net-libs/libssh2
libssh2 (Debian package)
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 - addressed in versions 1.9.0-12, 1.10.0-10, 1.11.0-7
libssh2 - update to 1.11.1-1
libssh2-devel - update to 1.11.1-1
libssh2-docs - update to 1.11.1-1
net-libs/libssh2 - update to 1.11.1-r2
libssh2 (Debian package) - update to 1.11.1-1+deb13u1
External References
Related Security Bulletins
- Multiple vulnerabilities in libssh2
- Ubuntu update for libssh2
- openEuler 20.03 LTS SP4 update for libssh2
- openEuler 24.03 LTS SP3 update for libssh2
- openEuler 24.03 LTS SP1 update for libssh2
- openEuler 22.03 LTS SP4 update for libssh2
- Anolis OS update for libssh2
- Debian update for libssh2
- Gentoo update for libssh2