Logo
vulnerabilityCVE-2025-15661
Name
CVE-2025-15661
Source
NVD ( link)Debian ( link)
Description
libssh2 through 1.11.1, fixed in commit 2dae302, contains an out-of-bounds heap read vulnerability in the sftp_symlink() function in src/sftp.c that allows a malicious SSH server or man-in-the-middle attacker to disclose heap memory contents or cause a crash by sending a crafted SSH_FXP_NAME response. Attackers can supply a link_len value larger than the actual packet data in SSH_FXP_NAME responses for SFTP READLINK and REALPATH operations, triggering a heap buffer over-read of up to target_len minus one bytes due to the missing validation of available packet buffer size before the memcpy operation.
Published Date
Updated Date
Workaround
-

Analysis#


Affected Component
Analysis
libssh2
Exploitable

Vulnerability Ratings#


8.3
CVSSv4
6.5
CVSSv31
6.5
CVSSv31
NaN
other

Others affected components#


Name
Project
Project Version
Version
Status
buildroot
2025.02.x
1.11.1
Exploitable
buildroot
master
1.11.1
Patched
openwrt
master
1.11.1-r1
Exploitable
openwrt
openwrt-25.12
1.11.1-r1
Exploitable
yocto
master
1.11.1
Patched
yocto
scarthgap
1.11.1
Exploitable

Resolved with patches#


libssh2 (buildroot:master)

#
Title
Author
Resolve
1
Update sftp_symlink to avoid out of bounds read on malformed
Will Cosgrove <will@panic.com>
CVE-2025-15661
2
Patch #2
Stefan Müller <stefan.mueller@rey-technology.com>
CVE-2025-15661
3
Fix sftp_symlink when getting SSH_FXP_STATUS response (#1731)
Will Cosgrove <will@panic.com>
CVE-2025-15661

libssh2 (yocto:master)

#
Title
Author
Resolve
1
Fix sftp_symlink when getting SSH_FXP_STATUS response
Will Cosgrove <will@panic.com>
CVE-2025-15661
2
Update sftp_symlink to avoid out of bounds read on
Will Cosgrove <will@panic.com>
CVE-2025-15661