{"id":"DHI-4gzm-luum-uqyk-riga","summary":"libssh2 through 1.11.1, fixed in commit 2dae302, contains an out-of-bounds heap read vulnerability in the…","details":"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.","modified":"2026-11-21T01:00:07.015018355Z","published":"2026-11-13T16:59:06Z","upstream":["CVE-2025-15661"],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-4gzm-luum-uqyk-riga"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-15661"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/libssh2-heap-buffer-over-read-via-sftp-symlink-in-sftp-c"},{"type":"FIX","url":"https://github.com/libssh2/libssh2/pull/1717"},{"type":"FIX","url":"https://github.com/libssh2/libssh2/pull/1705"},{"type":"FIX","url":"https://github.com/libssh2/libssh2/commit/2dae3024897e1898d389835151f4e9606227721d"},{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2025-15661"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2025-15661"},{"type":"ADVISORY","url":"https://ubuntu.com/security/CVE-2025-15661"},{"type":"ADVISORY","url":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2025-15661"}],"affected":[{"package":{"name":"libssh2","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/libssh2"},"versions":["1.11.1-r1","1.11.1-r2","1.11.1-r3","1.11.1-r4","1.11.1-r5"],"database_specific":{"source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-4gzm-luum-uqyk-riga.json","owner_kind":"HSP"}},{"package":{"name":"libssh2","ecosystem":"Docker Hardened Images:Alpine:3.24","purl":"pkg:apk/dhi/libssh2"},"versions":["1.11.1-r3","1.11.1-r4","1.11.1-r5"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-4gzm-luum-uqyk-riga.json"}},{"package":{"name":"libssh2","ecosystem":"Docker Hardened Images:Debian:13","purl":"pkg:deb/dhi/libssh2"},"versions":["1.11.1-1+deb13u1+dhi1","1.11.1-1+deb13u1+dhi2","1.11.1-1+deb13u2+dhi0","1.11.1-1+dhi+deb13u1+dhi2","1.11.1-1+dhi+deb13u2+dhi0"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-4gzm-luum-uqyk-riga.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"}]}